This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Is there any way to get Servlet Init Parameter using EL? 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 » Java » JSP
Bookmark "Is there any way to get Servlet Init Parameter using EL?" Watch "Is there any way to get Servlet Init Parameter using EL?" New topic
Author

Is there any way to get Servlet Init Parameter using EL?

Nigel Chou
Ranch Hand

Joined: Oct 11, 2001
Posts: 47
Using ${initParam.paramName}, you can get context init parameter. But how to get Servlet init parameter using EL?


SCJP for Java 2, SCWCD, SCMAD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

For which servlet?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Nigel Chou
Ranch Hand

Joined: Oct 11, 2001
Posts: 47
Originally posted by Bear Bibeault:
For which servlet?

For the servlet that the current .jsp is translated to.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

http://faq.javaranch.com/view?InitParamsThruExpressionLanguage


[My Blog]
All roads lead to JavaRanch
 
 
subject: Is there any way to get Servlet Init Parameter using EL?
 
Similar Threads
EL retrieving init param in servlet element
EL Implicit Object access
How to get Servlet Init parameters in EL.
jspinitparameter
A question about servlet initParameter