As long as you set up a context with the docBase pointing to wherever the
root for your website is, jsp's can be run from any (other than protected)
directories under it.
i.e. by default your website root is the webapps directory. just have your
students "home" directories there, with whatever subdirectories they wish
inside that, and their jsp's residing anywhere in there. Then they would
just go to
http://localhost:8080/studentsfolder/theirsubfolder/wherever/etc/SomeJSP.jsp
As long as they do not use a foldername like META-INF it should work fine.
If you didn't want to use the webapps directory, just make say a context
/classwork that points to say D:\Students, and have all of their home
directories there.
Then they would go to
http://localhost:8080/classwork/studentsfolder....etc/SomeJSP.jsp
JSP's by themselves don't really require a special directory structure. Its
only when you start using class files and jars that they need to reside in
special locations.
While the above works with tomcat, so far I haven't had much luck with doing
something like this with an apache frontend using
~user/somefolder/SomeJSP.jsp and having apache forward the request to
tomcat. Right now though I'm not entirely sure if thats a problem with
apache/tomcat and ~user, or issues with my firewall proxy(it likes to try
and resolve localhost requests causing all sorts of testing problems).
Using something like the above /classwork context get passed along to tomcat
just fine from apache.
>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: context
>Date: Wed, 31 Jan 2001 09:59:55 -0000
>
>Can I take that there isn't a way of setting up tomcat so that any user can
>run jsp files from their web space no matter where they are on the server
>i.e. can't you set global path for whole of web site?
>
>
>I have 200 students who need to write jsp files and just upload them to
>their webspace.
>
>please any thoughts?
>
>thanks Matthew
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]