File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Servletconfig? 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 "Servletconfig?" Watch "Servletconfig?" New topic
Author

Servletconfig?

Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
What is actual purpose of Servletconfig web app?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Do you mean the ServletConfig class ?
If so, look at ServletConfig. A servlet can access a ServletConfig, and retrieve thinkgs like initialization values. You can see the full thing a servlet can access via its ServletConfig, by looking at the API above.


[My Blog]
All roads lead to JavaRanch
Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
yes I Know that we initialization is perform in ServletConfig,
But I don't know actual real time scenario for same...........
Please elaborate.....
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

In the deployment descriptor, you could have :

You can access those parameters via the ServletConfig.
Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
thanks for reply
 
wood burning stoves
 
subject: Servletconfig?
 
Similar Threads
Why Init() method
Where does ServletContect come in the hierarchy ?
passing ServletContext
servletconfig in real environmet
getServletContext() method?