I have try to use it in this way , but it donest work


<context-param>
                <param-name>Webmaster</param-name>
                <param-value>[EMAIL PROTECTED]</param-value>
        </context-param>

out.println("param:"+getServletConfig().getServletContext().getAttribute("Webmaster"));

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 14, 2000 12:41 AM
To: Jen Hsien Huang; Orion-Interest
Subject: Re: useage of context-param in web.xm


Hi Jen,

--From the dtd

<!--
The context-param element contains the declaration of a web
application's servlet context initialization parameters.
-->

<!ELEMENT context-param (param-name, param-value, description?)>

--this are parameters that apply to the application scope it looks like
to me

<!--
The web-app element is the root of the deployment descriptor for
a web application
-->

<!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, servlet*, servlet-mapping*, session-config?,
mime-mapping*, welcome-file-list?, error-page*, taglib*,
resource-ref*, security-constraint*, login-config?, security-role*,
env-entry*, ejb-ref*)>

in your app grab the values from the application scope.

Let us know if it works for you.

eric :-)

    Jen Hsien Huang wrote:

> what is "context-param" in web.xml?
> how to use it ? can anybody give me a code snip for example.
>
> Regards.,
> Jen Hsien Huang


Reply via email to