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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56204
    
  13

For which servlet?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 14672
    
  11

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
A question about servlet initParameter
How to get Servlet Init parameters in EL.
jspinitparameter
EL retrieving init param in servlet element
EL Implicit Object access