I have to call reset method explicitly if you have no choice
Tim Jian
-Original Message-
From: Ruben Cepeda [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 9:42 AM
To: [EMAIL PROTECTED]
Subject: RE: how to reset form
Hi Sabastian,
I came across the same problem when I
Hi Sabastian,
I came across the same problem when I first started using Struts. The
easies way to fix it is to set the scope of the bean in the action mapping
to request.
*
Ruben Cepeda
[EMAIL PROTECTED]
*
Original M
Visit keralatouch.com
__
Scanned and protected by Email scanner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
tAttribute(Globals.CANCEL_KEY, Boolean.TRUE);
}
return f;
}
Paul
> -Original Message-
> From: Sebastian Ho [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 9:07 AM
> To: Struts Users Mailing List
> Subject: RE: how to reset form
>
>
&g
Hi Sebastian,
> I call this in my action..
>
> form.reset(mapping, request);
>
> Is this right?
Of course, you need to implement ActionForm#reset(), because the default
does nothing.
http://struts.apache.org/api/org/apache/struts/action/ActionForm.html#reset(org.apache.struts.action.Action
eset in my case?
> >
> >
> > On Thu, 2004-08-26 at 16:07, Yves Sy wrote:
> > > I mean your "actionform" is stored in session scope by default :)
> > >
> > > Regards,
> > > -Yves-
> > >
> > > >
ot;.
>
> Regards,
> -Yves-
>
> > -Original Message-
> > From: Sebastian Ho [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 26, 2004 4:07 PM
> > To: Struts Users Mailing List
> > Subject: RE: how to reset form
> >
> > 1. I need to use
: Struts Users Mailing List
> Subject: RE: how to reset form
>
> 1. I need to use session for this one.
>
> 2. The textfield in the JSP didn't load the value from the bean. It is
a
> normal textfield.
>
> How do I reset in my case?
>
>
> On Thu, 2004-08-26 at 16:07,
;
> Regards,
> -Yves-
>
> > -Original Message-
> > From: Yves Sy [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 26, 2004 4:02 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: how to reset form
> >
> >
> > This i
I mean your "actionform" is stored in session scope by default :)
Regards,
-Yves-
> -Original Message-
> From: Yves Sy [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 4:02 PM
> To: 'Struts Users Mailing List'
> Subject: RE: how to reset for
This is happening because your session is stored in session scope by
default.
You should explicitly specify scope="request" in your actionmapping.
Regards,
-Yves-
> -Original Message-
> From: Sebastian Ho [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 3:33 PM
> To: Struts
11 matches
Mail list logo