Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60050
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there any way to get Servlet Init Parameter using EL?
 
Similar Threads
jspinitparameter
EL retrieving init param in servlet element
How to get Servlet Init parameters in EL.
A question about servlet initParameter
EL Implicit Object access