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
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
SCJP5
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|