tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amos Shapira <amos.shap...@webcollage.com>
Subject RE: Init-Parameter
Date Thu, 27 Jul 2000 12:51:36 GMT
What's the exact API you use to get the params.

I still have time to work (but I work about 15 hours a day).

> -----Original Message-----
> From: Thomas Bilz [mailto:thomas.bilz@xplain.de]
> Sent: Thursday, July 27, 2000 2:46 PM
> To: tomcat-user@jakarta.apache.org
> Subject: RE: Init-Parameter
> 
> 
> Nice idea. But it doesn't work! I've tried it already. If I 
> map one servlet
> direct to an url-pattern, it'll get the
> init-parameters. At the other way - started by the 
> url-pattern through the
> invoker - the parameters get lost on the way to the servlet. 
> I think the
> invoker catches them.
> 
> Thanks once again. Your answering so many of my questions, do 
> you still have
> time to work?
> 
> Tom
> 
> > -----Original Message-----
> > From: Amos Shapira [mailto:amos.shapira@webcollage.com]
> > Sent: Thursday, July 27, 2000 1:05 PM
> > To: 'tomcat-user@jakarta.apache.org'
> > Subject: RE: Init-Parameter
> >
> >
> > Try using context-param, these are application-level
> > parameters.
> >
> > > -----Original Message-----
> > > From: Thomas Bilz [mailto:thomas.bilz@xplain.de]
> > > Sent: Thursday, July 27, 2000 1:47 PM
> > > To: tomcat-user@jakarta.apache.org
> > > Subject: Init-Parameter
> > >
> > >
> > > Once again a little nice question:
> > >
> > > I want to start my servlets from a single directory
> > > '/Servlets'. 'That's
> > > easy', all of you'll say. Yeah I thought this, too.
> > > I added to web.xml some lines:
> > > --------------
> > > <servlet-mapping>
> > >          <servlet-name>invoker</servlet-name>
> > >          <url-pattern>/Servlets/*</url-pattern>
> > > </servlet-mapping>
> > > ---------------
> > > Works fine, until I had to use Init-Parameters for the
> > > servlets. It looks
> > > like the parameters are not forwarded by the invoker. Sure I
> > > could insert
> > > mappings for all servlets, but there are over 50!!
> > > So, is there another way to get things done?
> > >
> > > Tom
> > >
> > >             XPLAIN GmbH
> > > -----------------------------------------
> > >            Studio fuer interaktive Medien
> > >            Burgstrasse 25
> > >            D-50321 Brühl
> > >            www.xplain.de
> > >            thomas.bilz@xplain.de
> > >
> >
> 

Mime
View raw message