Frank Gauthier wrote:
> Hi,
>
> I've been trying to implement Method 2 (ie. have a servlet call a JSP
> page & pass the JSP a bean). However, when the servlet does a:
>
> servletContext.getRequestDispatcher("/somePage.jsp");
>
> I get an exception because there is no getRequestDispatcher() in
> ServletContext (contary to the 0.92 spec).
>
In the JSP 0.92 reference implementation, it was called
getResourceDispatcher() instead of getRequestDispatcher().
The servlet API code in the JSP reference implementation is not compatible
with *any* standard servelt API -- either 2.0 or 2.1 -- because it included
some experimental changes along the path. It's not going to work with any
other servlet API code or servlet engine.
I don't believe you will see anything from Javasoft until the 1.0
specification is done, and a reference implementation of that released. In
the mean time, the new version of JRun claims to support the 0.92 APIs (I
haven't tried it). There are also several free implementations of the 0.91
spec lying around, but there were so many changes that you might not want to
go there.
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".