tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <Simon.Kitch...@orange.ch>
Subject RE: Access a Servlet!!
Date Fri, 10 Nov 2000 12:15:22 GMT
Special offer today! Two for the price of one :-)

> -----Original Message-----
> From:	João Feliciano [SMTP:jfelix@ef.pt]
> Sent:	Friday, November 10, 2000 1:11 PM
> To:	Tomcat-User
> Subject:	Access a Servlet!!
> 
> Hello,
> 
> I have a servlet that I access through this url
> http://localhost/servlet/servletApp/ and I would like to access through
> this
> one http://localhost/servletAppAlias/.
> 
> Can I do this? How?
	[Kitching Simon]  
	in yourwebapp/WEB-INF/web.xml,
	(a) add a <servlet> entry
	(b) add a <servlet-mapping> entry
	I'm sure this is in either the docs or the examples....

> Do I have to have my web applications on the dir webapps?
	[Kitching Simon]  
	Nope, you just edit $TOMCAT_HOME/conf/server.xml,
	create a <context> attribute for your webapp and set
	the appropriate root directory attribute.

> Thanks.
> 
> João Feliciano
	[Kitching Simon]  
	No problem..

	Simon

Mime
View raw message