OK this is how to get init-params working for JSP
Include this in your web.xml file
web-app
context-param
param-name
foo
/param-name
param-value
bar
/param-value
/context-param
/web-app
And then in your JSP page:
String s = application.getInitParameter(foo);
On Thu, 8 Mar 2001 [EMAIL PROTECTED] wrote:
OK this is how to get init-params working for JSP
Include this in your web.xml file
web-app
context-param
param-name
foo
/param-name
param-value
bar
/param-value
/context-param
On Thu, 8 Mar 2001, Milt Epstein wrote:
[ ... ]
HTML
HEAD
TITLETesty/TITLE
/HEAD
BODY
%@ page
import="java.util.*"
%
%!
Enumeration names;
String name;
%
P
The value of init parameter var1 is:
%=
getServletConfig().getInitParameter("var1")
%
/P
P
The init
Hello Milt
The value of init parameter var1 is:
%=
getServletConfig().getInitParameter("var1")
%
/P
I use this:
title%= getServletContext().getInitParameter("ApplicationName") %
instead of getServletConfig() and it works.
Markus
On Fri, 9 Mar 2001, Markus Keller [OrcaSoft] wrote:
Hello Milt
The value of init parameter var1 is:
%=
getServletConfig().getInitParameter("var1")
%
/P
I use this:
title%= getServletContext().getInitParameter("ApplicationName") %
instead of getServletConfig() and