-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Felix Guerrero wrote:

> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> Hi,
>
> I would like to run JSP using jserv and Apache. What do I need to make
> that happen? I downloaded the JSP development kit from Sun. I tried to
> activate the server side inclusion for JSP
> (/servlets/nl.nmg.jsp.JSPServlet) in the mod_jserv then in the zone
> repository I added the location of the Jar files from the sun's JSPDK.
> However, I keep getting a 404 error. Am I doing it right or is there
> another Jar file that I am supposed to used instead of the one from Sun?
>

Isn't nl.nmg.jsp.JSPServlet the name of the servlet for GSP (or GNUJSP, I
don't remember which)?  The correct servlet name for the JSWDK servlet
engine is:

    com.sun.jsp.runtime.JspServlet

and you will want to use an ApJServAction directive in your httpd.conf file
to map ".jsp" to the path you set up for this servlet.

You should also be advised that there's going to be significant limits on
how well this will work.  Apache JServ is based on the version 2.0
servlet API, not the 2.1 API that JSP 1.0 requires.  As such, the things
that need the new features (such as <jsp:forward> and <jsp:include> will
fail with MethodNotImplemented exceptions.

Significant work has been done on 2.1 compatibility for Apache JServ (it's
available in the CVS source tree under branch JSERV1_1DEV), but it is
likely that this code will be combined with the code of the Jakarta
project (http://jakarta.apache.org) before it reaches production release
status.

In the mean time, I'm using the JSWDK kit directly for my JSP development
(it serves static HTML pages, servlets, and JSP pages).

>
> Thanks.
>
> Felix.
> President and CEO of MAD.

Craig McClanahan




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to