tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Dispatching request from Servlet to Portlet
Date Wed, 03 Nov 2010 13:53:46 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sachin,

On 11/3/2010 1:53 AM, sachin_nabble wrote:
>  I am new to servlets & portlets and  I need to set Session timeout at
> Application level, 
> in portlet somehow i am unable to set session time for Application,( Portlet
> level session available in Portlet thr RenderRequest object) so i am
> planning to set Application level Session timeout by using Servlet.
>  If i set Session Timeout in Servlet and then forward the request to portlet 
> will this session timeout value will control application timeout ? or i need
> to use include() instead of forward() ? 

You may be better off using a Filter (which is invoked before a servlet)
instead of an actual Servlet. You ought to be able to configure your
Filter to run against requests that will be routed to the portlet
without having to explicitly route those requests yourself.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzRaWoACgkQ9CaO5/Lv0PDz/ACgqbhbD0KNlNbmaH/Ta715gWDG
dmQAnArwdkoQF76tKQFLGy8JtUyxeZCv
=X8BD
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message