Pat, forms are stored in the sesion. If you want to reset it, simply remove it 
from the session
like the following: request.getSession(false).removeAttribute("yourFormName");

The next time Struts invokes the action, it will re-create it if it is missing. 
So you're learning
the downside of using session forms, which is that you have to clear it out of 
memory when you're
finished.

-- Paul

--- Chris Pat <[EMAIL PROTECTED]> wrote:

> Thanks Pat & rajasekhar
> I will do that.  
> However is there a way to stop the serialization or
> force the clearing of the form fields and keep the
> session otherwise instantiated?  I can see the need
> store/create objects in the session, possibly with a
> form bean, but want my fields clear.  Just a newbie. 
> Thanks.
> 
> --- Paul Benedict <[EMAIL PROTECTED]> wrote:
> 
> > Pat,
> > 
> > It's possible by restarting the tomcat server,
> > you're serializing the session -- it's called a
> > "sticky session" -- which sticks around between
> > restarts. 
> > 
> > I am not aware of anyone using reset(). If you also
> > need to clear the form fields, why not use a
> > request scope form? It sounds like you have your
> > form in session scope so the last submit is
> > always in memory; set scope="request" on the
> > <action> definition and this will solve it. 
> > 
> > --- Chris Pat <[EMAIL PROTECTED]> wrote:
> > 
> > > Hello
> > > I have an app with three fields on the form.  It
> > all
> > > works fine and I even have the Reset method
> > assigning
> > > blank strings.  The problem, Reset never works.  I
> > > submit the form and the form values  do not clear.
> > 
> > > This is even more unbelievable, I down TC,
> > recompile
> > > the war, place it in webapps, start TC, and STILL
> > the
> > > same values.  How can this happern, what am I
> > clearly
> > > not doing?  
> > > 
> > > Also, If I wanted the form to keep a dynamic list
> > per
> > > field of the values entered per session per form
> > with
> > > the browser, is there an easy way to do that? 
> > Thank you.
> > > 
> > > 
> > >   
> > >           
> > > __________________________________ 
> > > Yahoo! Mail - PC Magazine Editors' Choice 2005 
> > > http://mail.yahoo.com
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> > 
> >     
> >             
> > __________________________________ 
> > Yahoo! Mail - PC Magazine Editors' Choice 2005 
> > http://mail.yahoo.com
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>       
>               
> __________________________________ 
> Yahoo! Mail - PC Magazine Editors' Choice 2005 
> http://mail.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to