|
 |
pro_jsp thread: Global Settings Example
Message #1 by "Russ Wortman" <russ-jw@i...> on Sat, 26 May 2001 13:47:49
|
|
I'm experimenting with the approach to global settings that's presented in
Ch 11 of Professional JSP. I've gotten it to work successfully with
Tomcat and a JSP application loading as a servlet in the web.xml with one
catch. When I try to reference a setting via Settings.get method from a
JSP in a sub-directory of the application I get the following message:
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%
2Faccessmc/_0002fhelpme_0002fhelp_0002dtechsupp_0002ejsphelp_0002dtechsupp_
jsp_0.java:204: Undefined variable or class name: Settings
out.print( Settings.get("server.MailServer") );
The same code at the root of the application works fine. I've tried
several things to resolve but can't seem to get past this.
The web.xml is identical to that in the book on page 309 except for the
location of the init.conf file.
Please help.
|
|
 |