Hi!!

I have a checkbox problem.....

On my jspA page I have two checkboxes. From this jsp page I go to
saveaAction class A, this class sometimes forwards to a viewAction class
B(depending on a submit value), which forwards to jsp page B, which forwards
so saveAction class B which forwards to viewAction class A and the the first
jsp page(A) is shown again. In viewAction class A, saveAction classA and
saveActin classB I use the form bean A. Are you with me?!!

My problem is:

1) If scope is set to request in ViewActionA.do in my struts-confg.xml
file -  the checkbox values set on jsp page A are lost in the last forward
action (between saveAction class B and viewAction class A).

2) If scope is set to session in ViewActionA.do in my struts-confg.xml file
, the checkbox values are lost immediately in the first forward action.

I am aware of the "known " checkbox problem and uses the reset method in my
form bean.
Is this problem familiar to someone?
Has anybody tried gridcheckboxes? Are they better to use?

Thanks in advance - Linnéa


----- Original Message -----
From: "Shashi" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, December 14, 2001 5:08 AM
Subject: Re: preselected checkboxes


> 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]>
>
>

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

Reply via email to