• 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:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
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>
 
knowledge is the difference between drudgery and strategic action -- tiny ad
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic