You can put your JSP files in any directory and make it a virtual directory by 
updating server.xml file

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

</Host> 
-->
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 <email....@gmail.com>
To: dev@tomcat.apache.org
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
versions)

Thanks 
-- 
View this message in context: 
http://www.nabble.com/Running-jsp-in-a-different-directory-than-ROOT--tp22271255p22271255.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org


      

Reply via email to