• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Nigel Chou
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using ${initParam.paramName}, you can get context init parameter. But how to get Servlet init parameter using EL?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For which servlet?
 
Nigel Chou
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
For which servlet?

For the servlet that the current .jsp is translated to.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://faq.javaranch.com/view?InitParamsThruExpressionLanguage
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic