This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes html:select - selected list is empty 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 » Frameworks » Struts
Bookmark "html:select - selected list is empty" Watch "html:select - selected list is empty" New topic
Author

html:select - selected list is empty

bala gi
Greenhorn

Joined: Oct 01, 2012
Posts: 2
Hi, I need to populate an arraylist to one list box.
In Action class, I am not able to get the selected items in the 'available' list. Please advice. Thanks!
JSP:


Form:



PrescriptionForm:


Action:


Struts-config:
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi Bala,

Have you looked into the Struts FAQs for indexed properties?



Have Fun with Java
little,little.. little by little makes a lot..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: html:select - selected list is empty
 
Similar Threads
Logic Iterate
Cannot find bean: "EMPLOYEELIST" in any scope
dynamic form elements using struts
Not able to iterate through a bean property of type Array List
javax.servlet.ServletException:javax.servlet.jsp.JspException: Cannot find bean: "riga" in any scope