• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL Question...

 
Purujit Saha
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let me know how to write the following expresion in EL , in a jsp

<%=config.getInitParameter("xyz")%>

Thanks
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is discussed in this wiki page.
 
Rodrigo Alvarez
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
${initParam["abc"]}
 
Aleksander Zielinski
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rodrigo Alvarez:
${initParam["abc"]}


EL implicit object "initParam" maps context, not servlet, init parameter name to a single value.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic