A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
applicationScope
Mike Tabak
Ranch Hand
Joined: Mar 31, 2012
Posts: 32
posted
Aug 27, 2012 17:46:58
0
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: 56168
13
I like...
posted
Aug 27, 2012 19:57:23
0
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.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: applicationScope
Similar Threads
JSP turning into Servlet
EL and context-param???
variable doesn't increment
retriving attributes using EL
applicationScope in EL
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter