File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
suraj savaratkar
Ranch Hand
Posts: 96
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  •  
    suraj savaratkar
    Ranch Hand
    Posts: 96
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    problem has solved.

    thanks.
     
    Consider Paul's rocket mass heater.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic