IntelliJ Java IDE
The moose likes Tomcat and the fly likes Running JSP pages from any directory Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Running JSP pages from any directory" Watch "Running JSP pages from any directory" New topic
Author

Running JSP pages from any directory

WATTO WATTO
Greenhorn

Joined: May 10, 2003
Posts: 1
Hi,
I want to be able to run JSP pages from any directory on my server, not just pages under the webapps directory of tomcat. How can I set this up - I guess I am looking for something similar to the CGI scripts in Apache - as long as there is a cgi-bin folder then you can run cgi pages from anywhere. Can this be done for JSP?
Thanks guys for your help.
WATTO
watto@watto.org
http://www.watto.org
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11863
I believe that is accomplished in the server.xml configuration file - look at the Context tags and related comments.
Bill


Java Resources at www.wbrogden.com
George McCain
Ranch Hand

Joined: May 06, 2003
Posts: 35
incase you didn't find it...
the server.xml
you can add a new context (web app) xml
<Context path="" docBase="c:\\YourDirHere" debug="4" reloadable="true" cookies = "true" crossContext = "false">
..... other attributes
</Context>
 
 
subject: Running JSP pages from any directory
 
Threads others viewed
absolute URL path problem in jsp:forward ... tag
How can we findout which all files reference to a .config file in a checked out project
Jsp in weblogic server6.0
Apache 2.2.4
Apache and Tomcat questions
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture