Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why the spec excluded setAttribute for ServletConfig ?

 
Arun Giridhar
Ranch Hand
Posts: 181
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic