This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes html:select with two List Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:select with two List" Watch "html:select with two List" New topic
Author

html:select with two List

Ajay Tickle
Greenhorn

Joined: Mar 16, 2008
Posts: 17
HI,

I have to show list in my jsp page. I am using <html:select>

i am getting two lists from data base and it is in employee form bean: first list is for employee no and second list is for name. i want to display employee name in <option> and want to use employee no as VALUE in <option> so list would have employee no as value and name will be displayed to user.

i am not sure how to do it with two lists as i have two different lists, one list for emp no and one list for employee name. Please help me... some code example would be a help for me.

Thank you
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: html:select with two List
 
It's not a secret anymore!