Can't you just restrict webapp/ to have only index.jsp and directories
and then change all your links?
--Angus

> -----Original Message-----
> From: Kurt Overberg [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 14, 2003 9:24 AM
> To: Tomcat Users List
> Subject: Re: Changing document root for .jsp files?
> 
> 
> 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: [EMAIL PROTECTED]
> >> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >>
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to