> From: Samyukta Akunuru [mailto:[EMAIL PROTECTED] 
> Using session/hidden variables-what would be the best way to 
> carry the array of selected checkboxes to the next page.

(Please trim your posts.)

I assume there's a String[] in your form bean.  You can iterate over it
and write out several <html:hidden> tags with the appropriate values.
Struts should fill up your String[] property again when the resulting
form is submitted.  

But just putting the form bean in session scope should solve it.  You'll
have to be careful in the 'reset' method, but other than that the form
bean will keep all your values as you go along.
        <action
            path="/accountInquiry"
            type="com.example.AccountInquiryAction"
            name="accountForm"
            scope="session"    
            ...

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to