Thanks Eric,
I wasn't sure exactly where you meant me to put that, so I tried it here:
<..snip..>
public ActionForward nextForm(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
DynaValidatorForm dvf = (DynaValidatorForm)form;
int pageNumber = ((Integer)dvf.get("page")).intValue();
ActionErrors errors = submissionFormValidate(mapping, form,
request, pageNumber);
if (!errors.isEmpty()) {
saveErrors(request, errors);
return mapping.findForward("form" + String.valueOf(pageNumber));
}
pageNumber = pageNumber + 1;
String target = "form" + String.valueOf(pageNumber);
dvf.set("page", new Integer(pageNumber));
// return (mapping.findForward(target));
ActionForward cleanDisplay = mapping.findForward(target);
cleanDisplay.setRedirect(true);
return cleanDisplay;
}
<..end of snip..>
But all I get is a 500 error:
java.lang.IllegalStateException: Configuration is frozen
Was there somewhere else I should put it?
J
--- In [EMAIL PROTECTED], "Eric Lemle" <[EMAIL PROTECTED]> wrote:
> this might help, in your action.... not sure if this is in 1.1 either.
>
> ActionForward cleanDisplay= new ActionForward("add your code here");
> cleanDisplay.setRedirect(true);
> return cleanDisplay;
>
> Eric D. Lemle
> Senior Programmer / Analyst
> Intermountain Health Care
> 36 South State Street, Suite 1100
> Salt Lake City, Utah 84111
> United States of America (USA)
> (801) 442-3688 -- e-mail: [EMAIL PROTECTED]
>
>
> >>> [EMAIL PROTECTED] 2/3/2005 4:32:14 PM >>>
> Could somebody please refer me to a solution to this?
>
> I have a form bean (session-scoped) that is displayed over 3 pages.
> There
> are "back" and "next" buttons. Once a checkbox is selected and the
> user has
> moved to another page, it can't be cleared again. I have read that
> this is
> because the checkbox item is now in the session and simply unchecking
> it
> does not remove it from the session. What I haven't found is a
> solution or
> workaround.
>
> I am using struts 1.1.
>
> Thanks very much in advance,
> J
>
> ---------------------------------------------------------------------
> 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]