This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Populating <html:select> tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Populating <html:select> tag" Watch "Populating <html:select> tag" New topic
Author

Populating <html:select> tag

Hasif Subair
Greenhorn

Joined: Aug 12, 2009
Posts: 24
Hi,
I am new to struts, I am looking to populate a dropdown box from an ArrayList, but I am getting this error


I have no idea what to do, Please help.

Struts-config.xml



Action class



Action Form



Jsp


Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
I think setting scope to session in struts-config will work.


SCJP 6,SCWCD 5,SCBCD 5

Failure is not an option.
Hasif Subair
Greenhorn

Joined: Aug 12, 2009
Posts: 24
well tried it, but got the same error.
Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
did you define the action form in the struts-config.xml?
Hasif Subair
Greenhorn

Joined: Aug 12, 2009
Posts: 24
yes i did

Hasif Subair
Greenhorn

Joined: Aug 12, 2009
Posts: 24
I resolved it using <htmlptionsCollection> .

Thank you Siva Masilamani for your response .

 
Don't get me started about those stupid light bulbs.
 
subject: Populating <html:select> tag
 
Similar Threads
dynamic beans
Struts: No getter method for property name problem
Struts Validation Empty alert Box
Struts question
org.apache.jasper.JasperException: An exception occurred processing JSP page /jsps/ActionForms/Displ