• Post Reply Bookmark Topic Watch Topic
  • New Topic

applicationScope  RSS feed

 
Mike Tabak
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application web.xml file I have the following:

<context-param>
<param-name>custServEmail</param-name>
<param-value>custserv@murach.com</param-value>
</context-param>

under the <jsp-config> tag

Shouldn't I be able to access this on a jsp as follows:

${applicationScope.initParam.custServEmail} ?

It works when I leave off the applicationScope, but I was testing the applicationScope and when I include it I get a null string.

Thanks
Mike
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shouldn't I be able to access this on a jsp as follows:

No. Because initParam is it's own implicit object and is not in application scope.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!