aspose file tools*
The moose likes Servlets and the fly likes applicationScope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "applicationScope" Watch "applicationScope" New topic
Author

applicationScope

Mike Tabak
Ranch Hand

Joined: Mar 31, 2012
Posts: 43
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

Joined: Jan 10, 2002
Posts: 61434
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applicationScope