tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis Callo <francisca...@yahoo.com>
Subject Re: How to mask servlet ?
Date Thu, 21 Jun 2001 16:56:34 GMT
Hi,

  In you web.xml try this 

        <servlet-mapping>
		<servlet-name>myServlet</servlet-name>
		<url-pattern>/myServlet/*</url-pattern>
	</servlet-mapping>

   all request on "login" will be passed to servlet
"login". if you want to access the "myServlet" on
context "testcontext" this should be your url
"http://somedomain.com/testcontext/myServlet"
Hope that works

May the source be with you!!!
Francis

--- Eric MARTIN <emartin@capgemini.fr> wrote:
> Does anybody know how to mask the servlet ?
> 
> Using Apache /Tomcat, i would like the URL le /aName
> (or /) be redirect to my Servlet (without the
> /servlet/myServlet).
> 
> He's there a way to do so ?
> 
> Thanks
> 
> Eric
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Mime
View raw message