W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 2000

Re: Problems with jigsaw 2.0.4 and "Tomcat" JSP...

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Tue, 07 Mar 2000 11:40:55 +0100
Message-ID: <38C4DCB7.4E13890B@sophia.inria.fr>
To: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>
CC: W3 Jigsaw Mailinglist <www-jigsaw@w3.org>
I just looked the tomcat jsp servlet code and the way it get the jsp URI is
strange. GNUJsp use request.getPathInfo() to get the jsp URI and tomcat
use its own request attribute "javax.servlet.include.request_uri".
Is it a standard way to get jsp URI? I've never seen it before.
Anyway, I add a workarround to ServletMapperFrame and it works now,
please check for the next developper release.

Regards, Benoit.


Roland Mainz wrote:

> Hi !
>
> ----
>
> I tried to run a small test JSP using jigsawV2.0.4 (developer release
> 20000301) and "tomcat" servlet (e.g. tomcat/lib/servlet.jat,
> tomcat/lib/jasper.jar and JDK1.3beta/tools.jar are in CLASSPATH) but
> I failed ;-((
>
> The *.jsp gets indexed and connected to a ServletMapperFrame. The
> ServletMapperFrame has the correct URL of the servlet in
> /servlets/JSPServlet, which uses org.apache.jasper.runtime.JspServlet
> class...
>
> When I try to access the URL I get the response:
> -- snip --
> JSP file "/servlets/JSPServlet" not found
> -- snip --
>
> Any idea whats going wrong ? "Normal" servlets are working. Test *.jsp
> attached to this mail...
>
> ----
>
> Bye,
> Roland
>
> --
>   __ .  . __
>  (o.\ \/ /.o) Roland.Mainz@informatik.med.uni-giessen.de
>   \__\/\/__/  gisburn@informatik.med.uni-giessen.de
>   /O /==\ O\  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
>  (;O/ \/ \O;) TEL +49 641 99-13193 FAX +49 641 99-41359
>
>
>
>           -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> date test
>
> <%import java.util.*; %> <% Date d = new Date(); response.println( "date == " + d ); %>
>
>

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium   (W3C)
                    Architecture domain - Jigsaw Engineer

                http://www.w3.org/People/Mahe  - bmahe@w3.org
---------------------------------------------------------------------
Received on Tuesday, 7 March 2000 05:41:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:07 UTC