RE: Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Dave Newton

> Is that the only way to achieve that

As far as I know, unless you want to use the older,
unrecommended mod_jserv.

> What is mod_jk by the way???

It's an apache module that communicates between apache
and tomcat, like you asked.

Dave




Re: Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Joseph Wong

Is that the only way to achieve that

What is mod_jk by the way???


>From: "Jeffrey Miller" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: Servlet and JSP mapping in Tomcat + Apache
>Date: Thu, 21 Dec 2000 07:25:50 -0500
>
>You'll have to setup mod_jk to let Tomcat and Apache communicate - there 
is
>a nice howto that will help you
>
>- Original Message -
>From: "Joseph Wong" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, December 21, 2000 5:24 AM
>Subject: Servlet and JSP mapping in Tomcat + Apache
>
>
> > Hi,
> >
> > I want to use Apache + Tomcat to develop JSP and Servlet programs, 
where
> > Apache serves HTML pages and Tomcat serves JSP and Servlet.
> >
> > How to make mappings for JSP and Srvlet such that:
> >
> > 1) http://host-name/jsp/*.jsp --> go to jsp directory and run jsp
> > 2) http://host-name/servlet/servlet-name --> go to servlet directory 
and
> > run servlet.
> > ??
> >
> > And jsp and servlet should be in the same context so that jsp and 
servlet
> > programs can communicate.
> > ??
> >
> > I have tried to create a context "/jsp" and mapped to jsp directory, 
also
> > created "web-inf\classes" under jsp directory to hold servlet programs. 
In
> > that way, i can call servlet programs by "/jsp/servlet/servlet-name".
> > However I CANNOT call servlet programs by "/servlet/servlet-name" in
> > url?
> >
> >
> > Please help.
> > 
_
> > Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.
> >
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Jeffrey Miller

You'll have to setup mod_jk to let Tomcat and Apache communicate - there is
a nice howto that will help you

- Original Message -
From: "Joseph Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 21, 2000 5:24 AM
Subject: Servlet and JSP mapping in Tomcat + Apache


> Hi,
>
> I want to use Apache + Tomcat to develop JSP and Servlet programs, where
> Apache serves HTML pages and Tomcat serves JSP and Servlet.
>
> How to make mappings for JSP and Srvlet such that:
>
> 1) http://host-name/jsp/*.jsp --> go to jsp directory and run jsp
> 2) http://host-name/servlet/servlet-name --> go to servlet directory and
> run servlet.
> ??
>
> And jsp and servlet should be in the same context so that jsp and servlet
> programs can communicate.
> ??
>
> I have tried to create a context "/jsp" and mapped to jsp directory, also
> created "web-inf\classes" under jsp directory to hold servlet programs. In
> that way, i can call servlet programs by "/jsp/servlet/servlet-name".
> However I CANNOT call servlet programs by "/servlet/servlet-name" in
> url?
>
>
> Please help.
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>




Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Joseph Wong

Hi,

I want to use Apache + Tomcat to develop JSP and Servlet programs, where 
Apache serves HTML pages and Tomcat serves JSP and Servlet.

How to make mappings for JSP and Srvlet such that: 

1) http://host-name/jsp/*.jsp --> go to jsp directory and run jsp
2) http://host-name/servlet/servlet-name --> go to servlet directory and 
run servlet.
??

And jsp and servlet should be in the same context so that jsp and servlet 
programs can communicate.
??

I have tried to create a context "/jsp" and mapped to jsp directory, also 
created "web-inf\classes" under jsp directory to hold servlet programs. In 
that way, i can call servlet programs by "/jsp/servlet/servlet-name". 
However I CANNOT call servlet programs by "/servlet/servlet-name" in 
url?


Please help.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.