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