struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Gordon <>
Subject Re: clear vs. reset
Date Thu, 10 Aug 2006 17:46:57 GMT

I can't speak for clear vs. reset, but if you look at the default 
implementation of reset(...), it doesn't do anything - you have to 
override it in your form bean to have it do anything.

However, if you want to persist the data, you can set an attribute on 
the session and it will be available everywhere.

Hope that helps.


Caroline Jen wrote:
> When a session ends, all data submitted have to be
> cleared.
> My form bean is in a session.  I want to re-use the
> submitted data during the session.
> It seems that if I have the 'reset' method in my form
> bean, the submitted data are lost when I want to
> re-use the data.  
> What are the differences between the 'clear' method
> and the 'reset' method?
> Thanks for your advice.
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message