-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

You have a couple of things to investigate to see how to best do this for your 
application.

First:
Check out using initArgs or a config file to pass the document root for your servlets
You don't say whether you want a different document root depending on

Second:
Check out using a  <base> tag in conjunction with url rewriting to achieve your ends.

You could either have a fixed document root for your servlet or a variable document 
root depending on the variable things you can
pass to a servlet (alias, query string, form fields, extra path info etc)

HTH

***********************************************************
Brett Knights                             626-432-5767 work
[EMAIL PROTECTED]                 626-355-1017 home
***********************************************************

>
> Suppose DocumentRoot for apache is set to "/x/htdocs".
> Eg, if the host is acme.com, then the URL
>
>       http://www.acme.com
>
> serves up web pages from /x/htdocs.
>
>
> Now suppose when you activate a servlet, you want the
> DocumentRoot to change!  Eg, you want it to be "/y/mydocs".
> So then for the servlet 'coolstuff', the URL
>
>       http://www.acme.com/servlet/coolstuff
>
> serves up web pages from /y/mydocs.
>
> How do you set up this kind of DocumentRoot for the
> servlet?
>
> --
> Charlie Read
> MatraNet, Inc.
>



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to