Hi,

If you have a jsp how can you change the context parameter.

Eg. in you web.xml file you have:

<context-param>
 <param-name>App</param-name>
 <param-value>wr</param-value>
        <description>The short name for this application. Do Not
Modify.</description>
</context-param>

You can read this via

 ServletContext context=config.getServletContext();
  String name="App";
  String value=(String)context.getInitParameter(name);
  System.out.println("value: " + value);

How do you change the value of the parameter. E.g.. change the value of APP
from wr to req.

Any help is appreciated.

Alex


 

Reply via email to