This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 61071
    
  66

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?