hosting problem

tomcat is running well on my domain and showing welcoming page. the problem is tomcat shows its servlet examples as http://domainname/servlets-examples/servlet/RequestInfoExampleI want to set as http://domainname/servlet/*please help methanks & best regards
[289 byte] By [farakha] at [2007-11-27 5:41:27]
# 1

in side the web-apps directory of your tomcat you will have a folder called servlet-examples

rename it to servlet

inside the same folder you will find the folder WEB-INF and in the web.xml

you have to rename the

<url-mapping>servlet/RequestInfoExample</url-mapping>

<url-mapping>/RequestInfoExample</url-mapping>

hope it works I am not able to test it

arunmp25a at 2007-7-12 15:18:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi,With all respect I wouldn't say it has something common with servlet itself ;(Have You tried tomcat forum?Regards.
_Dima_a at 2007-7-12 15:18:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

> in side the web-apps directory of your tomcat you

> will have a folder called servlet-examples

>

> rename it to servlet

>

> inside the same folder you will find the folder

> WEB-INF and in the web.xml

>

> you have to rename the

>

> <url-mapping>servlet/RequestInfoExample</url-map

> ping>

>

> [code]<url-mapping>/RequestInfoExample</url-mapping>[/

> code]

>

> hope it works I am not able to test it

thanks for your reply.

please let me know that i have a *.jar that has all classes. I putted in /ROOT/WEB-INF/*.jar but not working as it uses the /servlet/* path

thanks again

farakha at 2007-7-12 15:18:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I don't think that renaming the servlet-examples would be a good option. Copy the servlet to WEB-INF/classes of ur main project directory.. Do the required mapping in ur descriptor file.
Harish_MCAa at 2007-7-12 15:18:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...