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
Message Follows
From: Sebastian Ho <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: how to reset form
Date: 26 Aug 2004 15:33:17 +0800
hi
A user submits a form and the action class
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
:33 PM
> To: Struts Users Mailing List
> Subject: how to reset form
>
> hi
>
> A user submits a form and the action class forward it back to the same
> JSP. The values entered previously is still there. How do I clear it
> before action returns a
hi
A user submits a form and the action class forward it back to the same
JSP. The values entered previously is still there. How do I clear it
before action returns actionforward?
Thanks
Sebastian Ho
-
To unsubscribe, e-mail:
12 matches
Mail list logo