• 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
  • 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: 34669
366
Eclipse IDE Java VI Editor
  • 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
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    problem has solved.

    thanks.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic