Hey!

I think this varies with servlet containers, but WebSphere has
an admin. applet that allows easy mods to config parameters.

But if I want to do it the hard way, I would go to the servlets.properties file

and do this:

# Servlets added by the me
servlet.alias.code=HTTPServlet.class
servlet.alias.initArgs=question=Are servlets Kewl
servlet.alias.description=testing

Sans adieu,
Danny Rubis


Mahesh Acharya wrote:

> Hi,
>
> How can we set init parameter in the web server configuration ?
>
> Basically, I want to get the values something like this, in the init
> method of the servlet
>
> String filename ;
> public void init(ServletConfig config) throws ServletException
> {
>      super.init(config);
>      filename = config.getInitParameter("addressfile");
> .......
>
> }
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to