Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes I  want to know where to put jsp code to make an dynamic html page. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "I  want to know where to put jsp code to make an dynamic html page." Watch "I  want to know where to put jsp code to make an dynamic html page." New topic
Author

I want to know where to put jsp code to make an dynamic html page.

suraj savaratkar
Ranch Hand

Joined: May 17, 2010
Posts: 51
Hi;

I want to know where to put jsp code to make an dynamic html page.

I wrote like that but still not working





Please help me.
Thanks.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26152
    
  66

I've added code tags to make this easier to read. What do you mean by "not working"? See TellTheDetails for examples of what information to provide.

Some general comments:
  • JSPs shouldn't have Java code in them. This is a decade out of date practice. (read about MVC for why)
  • Consider using a PreparedStatement (read about SQL injection for why)
  • Double check the book you got this code/pattern from. The JDBC code has a resource leak


  • [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
    Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
    suraj savaratkar
    Ranch Hand

    Joined: May 17, 2010
    Posts: 51
    problem has solved.

    thanks.
     
    I agree. Here's the link: http://zeroturnaround.com/jrebel
     
    subject: I want to know where to put jsp code to make an dynamic html page.
     
    Similar Threads
    spaces while populating using s:iterator
    Text Box Validation
    ArrayIndexOutOfBoundsException
    Error coming 500 please an code is
    JSP form with four inputs and one submit button