struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yves Sy" <yves...@ssip.com>
Subject RE: how to reset form
Date Thu, 26 Aug 2004 08:54:10 GMT
You can try using html:text instead of a normal textfield and use
ActionForm's reset() method to reset the values to "".

Regards,
-Yves- 

> -----Original Message-----
> From: Sebastian Ho [mailto:sebastianh@bii.a-star.edu.sg]
> Sent: Thursday, August 26, 2004 4:07 PM
> To: 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, Yves Sy wrote:
> > I mean your "actionform" is stored in session scope by default :)
> >
> > Regards,
> > -Yves-
> >
> > > -----Original Message-----
> > > From: Yves Sy [mailto:yves.sy@ssip.com]
> > > Sent: Thursday, August 26, 2004 4:02 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: how to reset form
> > >
> > >
> > > 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:sebastianh@bii.a-star.edu.sg]
> > > > Sent: Thursday, August 26, 2004 3: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 actionforward?
> > > >
> > > > Thanks
> > > >
> > > > Sebastian Ho
> > > >
> > > >
> > > >
> >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message