wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes init() method of Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "init() method of Servlet" Watch "init() method of Servlet" New topic
Author

init() method of Servlet

Nidhi Sar
Ranch Hand

Joined: Oct 19, 2009
Posts: 252

I'm a little unsure, at what point in a Servlet's life, are the ServletConfig & ServletContext available to be accessed?
Specifically, can the init() method of the Servlet access those objects?


"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

Yes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Nidhi Sar
Ranch Hand

Joined: Oct 19, 2009
Posts: 252

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: init() method of Servlet
 
Similar Threads
Load On Startup
init missing in servlet
mvc
Usage of Constructor ant Init() Method
Context