struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francisco Hernandez" <fhernan...@fhernandez.net>
Subject Re: Session size management with Struts
Date Mon, 14 Jan 2002 19:55:08 GMT
under what conditions would you store formBeans under session or request
scopes?
same for actions.. when would you put the action in request or session
scopes?
----- Original Message -----
From: "Ted Husted" <husted@apache.org>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Monday, January 14, 2002 10:16 AM
Subject: Re: Session size management with Struts


> 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/ActionServ
let.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:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message