File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes How to fill select list from database table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to fill select list from database table" Watch "How to fill select list from database table" New topic
Author

How to fill select list from database table

Sudhir Pawar
Greenhorn

Joined: Sep 27, 2012
Posts: 25
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

Joined: Jan 10, 2002
Posts: 60752
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: How to fill select list from database table
 
Similar Threads
update of records
JSP two pages
How to update record in oracle databse
How to update record in oracle databse
exception while running code