aspose file tools*
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 Spring in Action this week in the Spring 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: 61413
    
  67

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: 14688
    
  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?