public ActionForward perform(
     ActionMapping mapping,
     ActionForm form,
     HttpServletRequest request,
     HttpServletResponse response)
     throws ServletException
{
     KRLogger.addContext(KRActionUtil.getUserId(request));

     ActionForward forward = mapping.findForward("success");
     ActionErrors errors = new ActionErrors();
     //ReportForm reportForm = null;

     if (form instanceof ReportForm) {
           ReportForm reportForm = (ReportForm) form;

<<make various changes to form using reportForm.set*() methods.  Also
determining value of forward based upon field from form>>
     
     request.setAttribute(mapping.getName(),reportForm);

     return (forward);
}

Once I get to the action I forward to the changes I made are gone.

-----Original Message-----
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 4:27 PM
To: Struts Users Mailing List
Subject: RE: Form not keeping changed values


What do you mean it didn't work?

Can you provide a few snippets of code?


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -----Original Message-----
> From: Wilinski, Pamela M. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 17, 2002 5:16 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Form not keeping changed values
> 
> 
> I tried that and it didn't work.
> 
> -----Original Message-----
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 17, 2002 4:04 PM
> To: Struts Users Mailing List
> Subject: RE: Form not keeping changed values
> 
> 
> Are you saving the form in the request (or session) before forwarding?
> 
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
> 
> 
> 
> 
> > -----Original Message-----
> > From: pmwilinski [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 17, 2002 8:57 AM
> > To: [EMAIL PROTECTED]
> > Subject: Form not keeping changed values
> > 
> > 
> > Hi all,
> > 
> > I have a problem with changes that are made in the action to values 
> > in my form being thrown out when it forwards to the next page.  Does 
> > anyone know why this might be happening and how to make the changes 
> > stick???
> > 
> > Thanks,
> > 
> > Pam
> > 
> > 
> > --
> > 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]>
> 
> 

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