You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Didier McGillis <co...@hotmail.com> on 2004/09/20 22:19:44 UTC

a question or two

This site that I'm moving over to an Apache/Tomcat intergrated site has jsp 
and html pages intermingled, so when I move these over and sperate the jsp 
file from the html file I have to create a folder in the Tomcat folders that 
are named the same as the one in the html side?  Is that correct.

_________________________________________________________________
Scan and help eliminate destructive viruses from your inbound and outbound 
e-mail and attachments. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
  Start enjoying all the benefits of MSNŽ Premium right now and get the 
first two months FREE*.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: a question or two

Posted by QM <qm...@brandxdev.net>.
On Mon, Sep 20, 2004 at 08:19:44PM +0000, Didier McGillis wrote:
: This site that I'm moving over to an Apache/Tomcat intergrated site has jsp 
: and html pages intermingled, so when I move these over and sperate the jsp 
: file from the html file I have to create a folder in the Tomcat folders 
: that are named the same as the one in the html side?  Is that correct.

I'm not sure I get you here.  If all of the webapp data is within the
context's path (i.e. you could serve it all from a WAR file) then:
1/ set Apache's doc root to the Tomcat context path
2/ tell Apache to serve the static content and let Tomcat handle the
Java

A slight twist on #1, you could setup Apache with a separate document
root and copy all static content there.  This has the added benefit that
Java code never touches the web server (should you separate the web/app
servers) but will require some fancy script work if the app is not
organized by content, i.e.
	{context}
	|
	+- jsp/
	|
	+- images/
	|
	+- html/
	
... and so on.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org