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

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