How do I set init parameters in the servlet engine?

Alex Chaffee

 

 

It depends on the servlet engine. Each has its own type of config file in which you can set the names and values of init parameters; these get passed to the servlets (or JSPs) via the getInitParameter() call.

For Tomcat and JSWDK, edit the conf/web.xml file. See also this FAQ.

Please add information about other servlet engines as feedback to this FAQ.

See this FAQ for information on passing an init param to a JSP.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact