thank for the reply Can you please help me out, how i can do this implementation using AJAX call.
Thanks in advance Joseph Zarar Siddiqi wrote: > > Yeah, you're going to have to load them every time. You could store > the collections in session or application scope if that's feasible but > other than that you don't really have a choice. Alternately, I think > the cleanest way of doing this might be to make an Ajax call to load > the third selection instead of reloading your page by submitting to > the action again. > > If you choose to call the action every time, you can have your action > implement the Preparable interface where you can do the collection > initialization in the prepare() method. > > Zarar > > On 10/3/07, Jose4u <[EMAIL PROTECTED]> wrote: >> >> In my jsp file i have three<s:select>combo boxes. 1 & 2 needs to be >> loaded >> from the db and the 3rd needs to loaded based on the (2)second combo box >> selection. I have implemented in such a way that in my action i have 3 >> collection objects. Intially b4 moving to jsp iam loading two collection >> object values from the db and in the jsp on change event of the (2)second >> list box i am calling the action class again and loading the third >> collection object with values but my problem is the previous two >> collection >> object is null. do i need to load the previous two collection objects >> every >> time on calling the action class? Please provide me the solution how to >> implement in struts2. >> >> Thanks in advance >> joseph >> -- >> View this message in context: >> http://www.nabble.com/struts2-%3Cs%3Aselect%3E-issue--not-retaining..-tf4565452.html#a13031516 >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/struts2-%3Cs%3Aselect%3E-issue--not-retaining..-tf4565452.html#a13034802 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]