This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes Why the spec excluded setAttribute for ServletConfig ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Why the spec excluded setAttribute for ServletConfig ?" Watch "Why the spec excluded setAttribute for ServletConfig ?" New topic
Author

Why the spec excluded setAttribute for ServletConfig ?

Arun Giridhar
Ranch Hand

Joined: Mar 10, 2012
Posts: 147

Why Servlet has excluded setAttribute for ServletConfig where i can get config object through getServletConfig() and later i can set the attribute for particular servlet at different point of time .

Thank You


hate Professionalism . Join the http://2014.hack.lu/index.php/Main_Page
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61457
    
  67

The ServletConfig represent the configuration of the servlet from the deployment descriptor. It makes no sense at all for any type of set operation, so there aren't any. If you want to set run-time values, that's something you'd do with the ServletContext.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why the spec excluded setAttribute for ServletConfig ?