Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setInitParameter() in ServletContext  RSS feed

 
isbc chen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the page 160 of "Head First Servlets and JSP 2nd", it says:

"Think of init parameters as deploy-time constants! You can get them at runtime, but you can’t set them. There’s no setInitParameter()."

,but why "setInitParameter()" appears in interface ServletContext.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is new with Servlets 3.0.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!