"Weiner, Sam" wrote:

> All,
>
> I'm not able to use the getRequestDispatcher.forward() method. I'm using the
> JSDK 2.0 which, as far as I can tell, doesn't include this method.
>
> The .92 JSP spec says,
>
> com.sun.server.http.HttpServiceResponse.callPage(String uri,
> HttpServletRequest request)
> is now:
> javax.servlet.ServletContext.getRequestDispatcher(String uripath)
>
> I'm using GNUJSP, so I would expect to use the former, but I don't seem to
> have access to either method.
>
> Can anyone tell me what I'm doing wrong?
>
> Thanks,
>

You are correct that JSDK 2.0 does not include the RequestDispatcher class --
it was added in JSDK 2.1.  To make matters even more complicated, the JSP 0.92
reference implementation included a special set of servlet classes that were
kind of "half way" between 2.0 and 2.1 -- in particular, the class you want was
called ResourceDispatcher in 0.92, not RequestDispatcher.  You will not be able
to use the 0.92 JSP reference implementation stuff with any servlet engine
other than the servlet runner included with the kit.

GNUJSP partially implements the 0.91 spec, not the 0.92 spec.  However, it
appears to me that callPage() -- or the nonstandard class
com.sun.server.http.HttpServiceResponse that contains it -- was not implemented
in GNUJSP.  As someone else suggested, you can use sendRedirect() in the mean
time, which is of course slower (because it causes an extra round trip to the
client browser).


> Sam Weiner
>

Craig McClanahan

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to