It is not neccessary to have the servlet class files in a separate package inside the web application.
Originally posted by Arun Somasundaram:
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.
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
Free, earth friendly heat - from the CodeRanch trailbosshttps://www.kickstarter.com/projects/paulwheaton/free-heat