aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
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: 67
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31057
    
232

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: 67
    problem has solved.

    thanks.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: I want to know where to put jsp code to make an dynamic html page.