This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet Object in Servlet Class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Servlet Object in Servlet Class" Watch "Servlet Object in Servlet Class" New topic
Author

Servlet Object in Servlet Class

somasundar venkatesh
Greenhorn

Joined: Mar 01, 2011
Posts: 14
Hi All,
Can we access or get Servlet object in Servlet Class. If so, then what type and how we can perform operations on that object.

Thanks,
Somu
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12268
    
    1
Servlet objects are created and managed by a servlet container such as Tomcat.

Directing a request to the appropriate servlet is handled by the servlet container also.

Bill

Java Resources at www.wbrogden.com
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 693

As per J2EE specifications, servlet object creation should be managed by web container itself.

Any specific reason you want to access Servlet object ?

~ abhay



Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Servlet Object in Servlet Class
 
Similar Threads
can we create a class named Object?
abstract
How does the servlet class object get loaded?
Servlets
Access Servlet InitParameters in JSP