This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Struts and the fly likes how to retrive value of html:multibox property value in Action class and set in session object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to retrive value of html:multibox property value in Action class and set in session object" Watch "how to retrive value of html:multibox property value in Action class and set in session object" New topic
Author

how to retrive value of html:multibox property value in Action class and set in session object

ashishk sharma
Greenhorn

Joined: Oct 23, 2008
Posts: 11
HI

i m uisng Struts dynaActionform ,

i have one property in my JSP using html:multibox property="selectedvalue"

now i want to retirve this values in my Action class when user click on submit button and

also want to set this selected values in my session object so that i can use this value in next JSP pages.

i have defined this property in XML <form-property name="selectedvalue" type="java.lang.String[]"/>

please give me piece of code so that i can understood how to retrive this value in Action class and set in session objecy

please help me out..its very urgent.

Thanks

Ashish ashish.mitujn07@gmail.com

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to retrive value of html:multibox property value in Action class and set in session object
 
It's not a secret anymore!