struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yun Sang Jung" <navi...@channeli.net>
Subject Re: ActionForm clearing
Date Sat, 07 Oct 2000 00:17:47 GMT
<HTML>
<HEAD><TITLE> Message </TITLE></HEAD>
<BODY>
<PRE>
<IMG SRC="http://webmail.channeli.net/webmail/button.php3?id=jdwodviwnranavidad&user=navidad"
width="1" height="1">
> 
> Here's how I normally handle this scenario.  In the Action class that
> handles this form submit:
> * Perform whatever task is requested
> * Remove the form bean session attribute
> * Forward to whatever JSP page is appropriate.
> 
> When the <struts:form> tag of the form sees that there is no form bean
> there, it will create a new one (with whatever default values you have
> defined in the class itself) and store it in the session.  From the user's
> perspective, that's a new blank form.
> 
> In general, it is a good practice to delete form beans from the session when
> you are through with them -- otherwise they just sit there occupying memory
> until the session is invalidated or timed out.

Did you mean I should call
"session.removeAttribute(mapping.getFormAttribute()); "?

> 
> Craig McClanahan
> 
> ====================
> See you at ApacheCon Europe <http://www.apachecon.com>!
> Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
> Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
>                                     Applications to Tomcat
> 
> 

<br><br>
-----------------------------------<br>
¸ø¸»¸®´Â ÀÎÅͳÝä³Î,<br>
ä³Î¾ÆÀÌ <A href="http://www.channeli.net">http://www.channeli.net</A><br>

</PRE></BODY>
</HTML>

Mime
View raw message