• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Running JSP pages from any directory

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
[email protected]
http://www.watto.org
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe that is accomplished in the server.xml configuration file - look at the Context tags and related comments.
Bill
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
I have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic