Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: very basic question

Ben Souther

2004-01-20

Replies:

Context initialization only occurs when the servlet is first instanciated.
So... no it is not possible to set session information in web.xml.

You can create a param for the entire application (context) or you can create
a parameter for a particular servlet.




On Tuesday 20 January 2004 09:03 am, Edson Alves Pereira wrote:
>  Hello folks, i´m trying to create some session attributes in my
> web.xml, i know only <context-param> and for this one i need
> ContextServlet.getInitParameter( ), i´d like to use
> HttpSession.getAttribute( ). Is possible to define session attributes in
> web.xml?
>
>  Regards,
>  Edson

--
Ben Souther
F.W. Davison & Company, Inc.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.