aspose 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
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: 61764
    
  67

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to fill select list from database table