Arun.V.Somasundaram
[My Blog]
All roads lead to JavaRanch
Arun.V.Somasundaram
Arun.V.Somasundaram
It is not neccessary to have the servlet class files in a separate package inside the web application.
Arun.V.Somasundaram
Arun.V.Somasundaram
Originally posted by Arun Somasundaram:
HttpSessionListener
Refer this URL you will get a clear Idea.There it is not said that the class which implements the HttpSessionListener interface should use request.getSession() to get a reference to the session created.I the respective methods are invoked then what is the purpose of the events in JAVA.
[ July 29, 2006: Message edited by: Arun Somasundaram ]
Ok Mr.Ben Souther it is said that the container creates a unique session when a client requests a resource in a web application.I am not oppsing you,what I want to know is why the method is not invoked when a new session is created,more over the container automatically creates the session implicitly. We are just getting the reference to the session created by the container using request.getSession() method. The container invokes the method
Returns the current HttpSession associated with this request or, if there is no current session and create is true, returns a new session.
If create is false and the request has no valid HttpSession, this method returns null.
Arun.V.Somasundaram
I am Arthur, King of the Britons. And this is a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|