• Post Reply Bookmark Topic Watch Topic
  • New Topic

EL implicit object for SERVLET (not context) init params?  RSS feed

 
JohnWilliam Fitz
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

In EL, I know that I can get the ServletContext init parameters using the initParam implicit object. But what if I need to get a servlet init param? (You know, the ones you get calling GenericServlet's getInitParameter() method. The ones you find within a <servlet> section of the DD.)

Gracias in advance,
John
 
Rufus Addis
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the following help:

http://faq.javaranch.com/java/InitParamsThruExpressionLanguage

Rufus.
 
JohnWilliam Fitz
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it does, thanks!

(Not only does it help, if one googles "servlet init params el" it comes up as the number one hit. Maybe I should google first in the future.)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!