Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to fill select list from database table

 
Sudhir Pawar
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to fill select list from database table using servlet and jsp.

my code is given below please tell me where it goes wrong and proper solution also.
1.UsersDetail.jsp



2. UserDetailServlet.java


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow, you are really using some outdated stuff there. Firstly, a List implementation should be used in place of Vector. And any JSP page written since 2002 (that's 10 year ago!) should not have Java scriptlets in them. You should be using the JSTL and EL. Please read this JspFaq entry.

You also have not told us what the problem is. Just saying that it doesn't work, doesn't help us to help you. Please read ItDoesntWorkIsUseless, and provide more details as to what your problem is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic