You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ni...@liquidhead.com on 2006/02/25 15:23:09 UTC

configuration of Apache.

Hi,
I recently went in for hosting on a windows platform with jsp. 
The url for the jsp server i got was http://xx.xx.xx.xx:8080/username/index.jsp . 
I was told that i will have to use this url only or my jsp files will not execute.
Though the files are placed in the root of the webserver. i will have to use the url with the username if i want my jsp to execute.
please let me know the required changes so that i will be able to execute my jsp files with the url being displayed as http://xx.xx.xx.xx:8080/index.jsp . i.e without the username in the url.
Since i have also installed Apache and know it can be done.

Details :
Apache Tomcat/4.1.31
Windows 2003
 IIS 5.0

Thanks

N.Mathew

RE: configuration of Apache.

Posted by Kasim <mi...@gmail.com>.
Hello dear
The solution for your problem is ...
Put all your jsp pages at <tomcat home directory >\webapps\ROOT
Modify the existing web.xml present at <tomcat home directory
>\webapps\ROOT\web-inf for your application.If you are using only jsp then
there is no need to add web.xml but if you are using servlets then put the
following lines in it.Suppose you have myServlet.class in classes  folder
then put the following lines at web.xml

<web-app>
<servlet>
<servlet-name>myServlet</servlet-name>
<servlet-class>/myServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>myServlet</servlet-name>
<servlet-pattern>/callingName</servlet-pattern>

</ servlet-mapping>
</web-app>
now fire the url as as http://xx.xx.xx.xx:8080/callingName


-----Original Message-----
From: nirmal@liquidhead.com [mailto:nirmal@liquidhead.com]
Sent: Saturday, February 25, 2006 7:53 PM
To: users@tomcat.apache.org
Subject: configuration of Apache.
Importance: High

Hi,
I recently went in for hosting on a windows platform with jsp.
The url for the jsp server i got was
http://xx.xx.xx.xx:8080/username/index.jsp .
I was told that i will have to use this url only or my jsp files will not
execute.
Though the files are placed in the root of the webserver. i will have to use
the url with the username if i want my jsp to execute.
please let me know the required changes so that i will be able to execute my
jsp files with the url being displayed as http://xx.xx.xx.xx:8080/index.jsp
. i.e without the username in the url.
Since i have also installed Apache and know it can be done.

Details :
Apache Tomcat/4.1.31
Windows 2003
 IIS 5.0

Thanks

N.Mathew


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