On Thu, 8 Mar 2001, Milt Epstein wrote:

[ ... ]
> <HTML>
> <HEAD>
> <TITLE>Testy</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 parameters are:
> <UL>
> <%
>     names = getServletConfig().getInitParameterNames();
>     while (names.hasMoreElements()) {
>        name = (String) names.nextElement();
> %>
> <LI>
> <%=
>        name
> %>
> =
> <%=
>        getServletConfig().getInitParameter(name)
> %>
> <%
>     }
> %>
> </UL>
> </P>
> </BODY>
> </HTML>

BTW, it still works if I substitute "config" for "getServletConfig()"
everywhere above.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to