Re: clearing an ActionForm from session

2004-06-05 Thread ksitron
Thanks Riyad. The problem with having the form hang around is. There could potentially be a very large number of sessions (users) , all with a form to hang on to. So, the memory consumption could end up causing problems. Riyad Kalla wrote: You can forcibly remove it as the last step in your las

Re: clearing an ActionForm from session

2004-06-05 Thread Riyad Kalla
You can forcibly remove it as the last step in your last action before sending the user to a success page: request.getSession().setAttribute("formName", null); where "formName" is the same name you gave the bean in your struts-config.xml file in the "form-beans" section of the file. There is no

clearing an ActionForm from session

2004-06-05 Thread ksitron
I have an action form whose data is needed across several JSP's, for this reason I set the scope to session for this ActionForm in my struts-config.xml. When the transaction is completed I want the form to go away. What is the best practice for this. Thanks in advance. --