You can make request the default scope for form beans in the web.xml
<init-param>
<param-name>mapping</param-name>
<param-value>org.apache.struts.action.RequestActionMapping</param-value>
</init-param>
http://jakarta.apache.org/struts/api-1.0/org/apache/struts/action/ActionServlet.html
If you do need to use session beans for something, they are stored under
the name specified in the struts-config.xml, and can be removed like any
other attribute.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/
Olivier Dinocourt wrote:
>
> Hello list
>
> Since I've been developing webapps, I've always been told that the HTTP
> session should be kept as small as possible. IBM suggests a size of 4kb.
> Struts seems to put form beans into the HTTP session, and one often needs
> more than one form bean for a webapp. After browsing the Struts docs, it
> seems that there is no mechanism to automatically or manually clean the
> session once a form bean isn't needed anymore.
>
> Does someone have any feedback on the subject ? Is session size so
> important, or may I simply ignore it (although it doesn't like a good idea)
> ? Does Struts include (or is it planned to include) some feature to clean
> the session's content easily ?
>
> olivier
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>