You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Brahme, Supriya (ENJ)" <su...@express-scripts.com> on 2003/02/03 13:47:43 UTC
RE: Basic questions on ActionForm & Session time-out
Thanks. It means that I have to specify the scope explicitly in the struts config XML. I wonder why it can not work by extending from an ActionForm having Request scope. Because extending from ActionForm will always put default scope to SESSION for those forms & that is not desirable.
Intermixed...
> -----Original Message-----
> From: Brahme, Supriya (ENJ)
> [mailto:supriya.brahme@express-scripts.com <ma...@express-scripts.com> ]
> Sent: Friday, January 31, 2003 2:43 PM
> To: struts-user@jakarta.apache.org
> Subject: Basic questions on ActionForm & Session time-out
>
>
> Hi,
> I am new to Struts. I have some simple basic questions..
> 1. If we extend the ActionForm & define scope of the new
> class to = 'REQUEST', will all the extended ActionForm
> classes from this class have = scope Request?
No. You typically specify the scope of a form-bean in the struts-config. What this means is that an instance of the form-bean is placed in the session or the request with the key equal to the value of the "name" attribute.
> 2. How do we define session time-out parameter in Struts?
Like you would with any Servlet-based application; in the web.xml
> Thanks Supriya
>
>
Sri