Frank,

 The reference implementation uses ResourceDispatcher, instead of
RequestDispatcher.  Replace the getRequestDispatcher call with
getResourceDispatcher, and it should work fine.

---
Cheerio,
Rajesh (http://people.netscape.com/rajesh)

"Once during Prohibition, I survived for an entire week on food and water
alone"
       -W.C. Fields


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).
>
> Here's my configuration:
>
>   Software      Version
>   ------------------------
>   JSP           0.92
>   Web Server    JSP's servlet runner, java sun.servlet.http.HttpServer
>   Servlet       the jsdk.jar included with JSP 0.92 (from Sun)
>                 I believe it's JSDK2.0
>
> It seems to me that JSP ought to include the JSDK2.1 jar since it has a
> ServletContext.getRequestDispatcher().  I tried to use JSDK2.1's jar.
> Unfortunately, I got some other exceptions due to method signature
> differances.
>
> Did I miss something?  If not, I'd *really* appreciate a JSP 0.92a
> release with a working getRequestDispatcher()
>
>                              Thanks,
>
>                                 Frank Gauthier
>                                 RABA Technologies
>
> ===========================================================================
> 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".

===========================================================================
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