Re: how can I put jsp files with html files

From: Justin Mencl (jutmencl12_at_hotmail.com)
Date: 02/08/04


Date: 7 Feb 2004 21:43:03 -0800

Sudsy <bitbucket44@hotmail.com> wrote in message news:<402566D7.4070100@hotmail.com>...
> Justin Mencl wrote:
> > I have a RH9 machine running Apache2 and Tomcat 4 with mod_jk.so as a
> > connector. The configuration is running perfectly except for one
> > little nuisance. Apache is serving from /var/www/html and Tomcat is
> > serving from /usr/local/tomcat/webapps/'app'/. The connection between
> > works great for servlets. And the connection works for JSP pages when
> > the JSP pages are in the Tomcat directory. I would like to have the
> > JSP pages located with the rest of the HTML files at /var/www/html.
> >
> > Is there a way to get JSP files in /var/www/html to be served through
> > Apache to Tomcat? Is there a classBase Context param in Tomcats
> > server.xml I can use?
>
> This is handled automagically. My mod_jk.conf file is included in the
> Apache httpd.conf file and forwards all .jsp and .do requests to
> Tomcat. It's a fairly standard configuration, BTW.

Thanks for the repsponse.

Yes, my apache config will pass JSP requests to Tomcat, but Tomcat
will only look in the webapps/ directories for the requests. It will
not look outside to other directories. My question still stands, but
rephrased:

Is there a way to get Tomcat to server JSP pages located outside the
webapps/ directory?

Again, TIA

Justin Mencl



Relevant Pages

  • Re: Tomcat 5 with IIS6 using JK2
    ... map requests for all JSP pages to Tomcat. ... in this configuration the shared memory is explicitly set to ... > manual configuration and in retrospect this was probably a bad idea. ... > After failing to get the isapi connector to load, ...
    (comp.lang.java.programmer)
  • Re: Tomcat 5 with IIS6 using JK2
    ... map requests for all JSP pages to Tomcat. ... in this configuration the shared memory is explicitly set to ... > manual configuration and in retrospect this was probably a bad idea. ... > After failing to get the isapi connector to load, ...
    (microsoft.public.inetserver.iis)
  • Re: Tomcat - disable servlet access
    ... After your post I reread the hosting support info regarding jsp. ... ...as JSP angine Tomcat is used, connected through AJP13 connector ... It is not Tomcat that refuses to deliver servlets, ...
    (comp.lang.java.programmer)
  • Re: how can I put jsp files with html files
    ... > connector. ... > the JSP pages are in the Tomcat directory. ... It's a fairly standard configuration, ...
    (comp.lang.java.programmer)
  • how can I put jsp files with html files
    ... connector. ... Apache is serving from /var/www/html and Tomcat is ... the JSP pages are in the Tomcat directory. ...
    (comp.lang.java.programmer)