tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sura <>
Subject Re: Running jsp in a different directory than ROOT?
Date Sun, 01 Mar 2009 10:53:01 GMT
You can put your JSP files in any directory and make it a virtual directory by updating server.xml

<Host appBase="webapps" autoDeploy.......>
<Context path=”/resources” docBase=”E:/Internet-Server/tomcat/resources” debug=”0″

There is commented entry in server.xml as above. First stop the server and update it as you
need and restart your server. 

From: Hanna1990 <>
Sent: Sunday, March 1, 2009 3:40:35 PM
Subject: Running jsp in a different directory than ROOT?

I have written my first jsp application Hello World and succesfully run it on
a local machine by browsing http://localhost:8080/hello.jsp

Now I would like to make Tomcat doing the same thing in other directories
than ROOT. What should I do? I don't want to move all my new jsp-files into
ROOT-folder....  (I just installed Tomcat and JDK/JRE so I have the latest

View this message in context:
Sent from the Tomcat - Dev mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message