You can have one FormBean having the scope set to session (in
struts-config.xml), used accross all the JSP pages. In the JSP pages use the
"jsp:useBean" tag to have the same FormBean in the session. In all the JSP
send the action to a single action class. To distinguish between different
pages in the Action Class have a session variable to identify the page
number and set it in each page.

Hope this helps.

--Shashi.

----- Original Message -----
From: "Crisalyn Ramos" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, December 14, 2001 8:09 AM
Subject: preselected checkboxes


> Hi, all. I have several checkboxes in several JSP pages. In each page,
> there are different sets of checkboxes that needs to be in checked
> status during page loads.
>
> The option I have in mind is to make a separate ActionForm and Action
> class for each page but I thought that maintenance wise this is not
> appropriate because I need to revise several classes when some procedure
> changes.
>
> The Action that needs to be done is the same accross all JSP pages, just
> that these pages has different sets of accounts that needs to be in
> checked status during page load.
>
> Any design technique to handle this?
>
> thanks,
> Cris
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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

Reply via email to