You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kurt Overberg <ku...@hotdogrecords.com> on 2003/08/14 14:48:16 UTC
Changing document root for .jsp files?
Hi all!
I have the following layout for my web application:
webapp/
webapp/WEB-INF
webapp/admin
webapp/member
I have .jsp files in the webapp directory, webapp/admin and
webapp/member. When someone goes to the root of my website
(www.site.com/*.jsp), it gets the files out of the webapp/ directory.
member and admin are protected areas, which all work fine. I'd like to
make another subdir under webapp called root or something like that, so
the root of the web site isn't one level up from my WEB-INF. Is this
possible? I've googled incessantly and can't seem to find out how to do
this. Thanks in advance for any thoughts or ideas on this.
Thanks!
/kurt
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Changing document root for .jsp files?
Posted by Kurt Overberg <ku...@hotdogrecords.com>.
Yep. Right, I understand that. The root of my webserver is getting
kinda ugly though (lots of files), and I'd like to keep my WEB-INF from
being a subdir of my root (well, just for website appearances), just to
keep things clean (so I can CVS commit my .jsp files without having it
recursively go into my src files). Is this just a bad idea? There's no
way to map the root of the webserver to a different directory?
so what I'm saying is:
webapp/root/*.jsp map to www.site.com/*.jsp
webapp/admin/*.jsp map to www.site.com/admin/*.jsp
webapp/member/*.jsp map to www.site.com/member/*.jsp
... or do I have to just suck it up and deal?
/kurt
John Turner wrote:
>
> The root directory of a webapp is the directory that holds WEB-INF.
>
> John
>
> Kurt Overberg wrote:
>
>> Hi all!
>>
>> I have the following layout for my web application:
>>
>> webapp/
>> webapp/WEB-INF
>> webapp/admin
>> webapp/member
>>
>> I have .jsp files in the webapp directory, webapp/admin and
>> webapp/member. When someone goes to the root of my website
>> (www.site.com/*.jsp), it gets the files out of the webapp/ directory.
>> member and admin are protected areas, which all work fine. I'd like
>> to make another subdir under webapp called root or something like
>> that, so the root of the web site isn't one level up from my WEB-INF.
>> Is this possible? I've googled incessantly and can't seem to find out
>> how to do this. Thanks in advance for any thoughts or ideas on this.
>>
>> Thanks!
>>
>> /kurt
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
Re: Changing document root for .jsp files?
Posted by Kurt Overberg <ku...@hotdogrecords.com>.
Yep. Right, I understand that. The root of my webserver is getting
kinda ugly though (lots of files), and I'd like to keep my WEB-INF from
being a subdir of my root (well, just for website appearances), just to
keep things clean (so I can CVS commit my .jsp files without having it
recursively go into my src files). Is this just a bad idea? There's no
way to map the root of the webserver to a different directory?
so what I'm saying is:
webapp/root/*.jsp map to www.site.com/*.jsp
webapp/admin/*.jsp map to www.site.com/admin/*.jsp
webapp/member/*.jsp map to www.site.com/member/*.jsp
... or do I have to just suck it up and deal?
/kurt
John Turner wrote:
>
> The root directory of a webapp is the directory that holds WEB-INF.
>
> John
>
> Kurt Overberg wrote:
>
>> Hi all!
>>
>> I have the following layout for my web application:
>>
>> webapp/
>> webapp/WEB-INF
>> webapp/admin
>> webapp/member
>>
>> I have .jsp files in the webapp directory, webapp/admin and
>> webapp/member. When someone goes to the root of my website
>> (www.site.com/*.jsp), it gets the files out of the webapp/ directory.
>> member and admin are protected areas, which all work fine. I'd like
>> to make another subdir under webapp called root or something like
>> that, so the root of the web site isn't one level up from my WEB-INF.
>> Is this possible? I've googled incessantly and can't seem to find out
>> how to do this. Thanks in advance for any thoughts or ideas on this.
>>
>> Thanks!
>>
>> /kurt
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Changing document root for .jsp files?
Posted by John Turner <to...@johnturner.com>.
The root directory of a webapp is the directory that holds WEB-INF.
John
Kurt Overberg wrote:
> Hi all!
>
> I have the following layout for my web application:
>
> webapp/
> webapp/WEB-INF
> webapp/admin
> webapp/member
>
> I have .jsp files in the webapp directory, webapp/admin and
> webapp/member. When someone goes to the root of my website
> (www.site.com/*.jsp), it gets the files out of the webapp/ directory.
> member and admin are protected areas, which all work fine. I'd like to
> make another subdir under webapp called root or something like that, so
> the root of the web site isn't one level up from my WEB-INF. Is this
> possible? I've googled incessantly and can't seem to find out how to do
> this. Thanks in advance for any thoughts or ideas on this.
>
> Thanks!
>
> /kurt
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Changing document root for .jsp files?
Posted by John Turner <to...@johnturner.com>.
The root directory of a webapp is the directory that holds WEB-INF.
John
Kurt Overberg wrote:
> Hi all!
>
> I have the following layout for my web application:
>
> webapp/
> webapp/WEB-INF
> webapp/admin
> webapp/member
>
> I have .jsp files in the webapp directory, webapp/admin and
> webapp/member. When someone goes to the root of my website
> (www.site.com/*.jsp), it gets the files out of the webapp/ directory.
> member and admin are protected areas, which all work fine. I'd like to
> make another subdir under webapp called root or something like that, so
> the root of the web site isn't one level up from my WEB-INF. Is this
> possible? I've googled incessantly and can't seem to find out how to do
> this. Thanks in advance for any thoughts or ideas on this.
>
> Thanks!
>
> /kurt
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>