vineet kaushik wrote:Hi All,
If HttpServletRequest is an interface then how do we call the getSession() declared in this interface???
Thanks,
VIneet
SCJP5
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
Sometimes the only way things ever got fixed is because people became uncomfortable.
OCPJP
In preparing for battle I have always found that plans are useless, but planning is indispensable. -- Dwight D. Eisenhower
Tim Holloway wrote:Actually, the HttpSession is an interface, as well!
SCJP5
SCJP5
Sumit Patil wrote:its the implementing class which provides the implementation which you can call in your application.
In case of HttpServletRequest, its the servlet container like Tomcat which will provide the implementation.
SCJP5
Swetha Bhagavathula wrote:
Sumit Patil wrote:its the implementing class which provides the implementation which you can call in your application.
In case of HttpServletRequest, its the servlet container like Tomcat which will provide the implementation.
Hai. I hope Tomcat is web server not the container.. request you to please verify even IDEs where they give tomcat under servers and" catalina" is the servlet container in tomcat web server.
Sometimes the only way things ever got fixed is because people became uncomfortable.
SCJP5
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |