You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lars Ohlén <la...@ohlen.se> on 2005/11/11 18:25:21 UTC

Servlet alias cross Webapp boundaries

Hi!

I have a servlet in a webapp ( /web) but would like to be able to invoke the same servlet (without duplication of .class file) with 
another webapp name (/script)

My original idea was to implement this in the httpd processing using mod_rewrite, but I have run into some other issues with mod_rewrite
so I'm looking for another solution. 

Can this be achived with some configuration or can I do this will some servlet Filter functionallity. Since the target OS is Solaris I also
considered the possibility to do some soft links.

Any ideas / suggestions appreciated

BR

Lars







Re: Servlet alias cross Webapp boundaries

Posted by Peter Menzel <pe...@imise.uni-leipzig.de>.
Lars Ohlén schrieb:
> Hi!
> 
> I have a servlet in a webapp ( /web) but would like to be able to invoke the same servlet (without duplication of .class file) with 
> another webapp name (/script)
> 
> My original idea was to implement this in the httpd processing using mod_rewrite, but I have run into some other issues with mod_rewrite
> so I'm looking for another solution. 
> 
> Can this be achived with some configuration or can I do this will some servlet Filter functionallity. Since the target OS is Solaris I also
> considered the possibility to do some soft links.
> 
> Any ideas / suggestions appreciated
> 
> BR
> 
> Lars
> 
> 

Pack your classes in a jar and place it in $TOMCAT_HOME/common/lib.

Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org