tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arshad Mahmood" <arsh...@compuvision.co.uk>
Subject Re: Parameters for virtual servers in server.xml? Is it possible?
Date Wed, 19 Jun 2002 10:00:32 GMT
The parameters shown in the example go into the "Context" section. If you
have defined multiple virtual hosts then you will have to define a context
(for you web application) within each of them, you can then add the
parameters there.

Regards.

----- Original Message -----
From: "Donie Kelly" <donie.kelly@tecnomen.ie>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Wednesday, June 19, 2002 10:54 AM
Subject: RE: Parameters for virtual servers in server.xml? Is it possible?


> That will return the same information across all virtual servers. I want
to
> be able to set the parameter for each host element in server.xml
>
> Donie
>
>
> -----Original Message-----
> From: August Detlefsen [mailto:augustd123@yahoo.com]
> Sent: 18 June 2002 18:54
> To: Tomcat Users List
> Subject: RE: Parameters for virtual servers in server.xml? Is it
> possible?
>
>
> You can put parameters such as this in web.xml for each webapp:
>
>     <context-param>
>       <param-name>serviceProvider</param-name>
>       <param-value>service1</param-value>
>       <description>This is the description</description>
>     </context-param>
>
> Then you can get them in your servlet using:
>
>     application.getInitParameter("serviceProvider");
>     //application is your javax.servlet.ServletContext
>
>
> --- Donie Kelly <donie.kelly@tecnomen.ie> wrote:
> > Can anybody answer this question?
> >
> > I want to add parameters which are available to a servlet but
> > different for
> > each virtual host. I need to have a value called service provider id
> > which
> > is all I need to get the extra required information from LDAP. I need
> > to do
> > this so that the same code can be used across all virtual hosts....
> >
> > Any ideas how this can be done....
> > Donie
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:tomcat-user-help@jakarta.apache.org>
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message