GeeCON Prague 2014*
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


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 .

 
GeeCON Prague 2014
 
subject: Populating <html:select> tag