RequestDispatcher is a new classs in JSDK2.1. Check the version
of JSDK you are running.

srikala.

-----Original Message-----
From: Allamraju Kumarswamy [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 20, 1999 1:04 PM
To: [EMAIL PROTECTED]
Subject: getRequestDispatcher not found in ServletContext


Can somebody tell me the right way of invoking a jsp page from a
servlet.

I'm following the procedure given in
http://www.esperanto.org.nz/jsp/jspfaq.html#q9

when i compile FooServlet.java,  i'm getting the following errors.


D:\JavaWebServer2.0\servlets>javac FooServlet.java
FooServlet.java:15: Method setAttribute(java.lang.String, Foo) not found
in inte
rface javax.servlet.http.HttpServletRequest.
                req.setAttribute("foo", ff);
                                ^
FooServlet.java:17: Method getRequestDispatcher(java.lang.String) not
found in i
nterface javax.servlet.ServletContext.

getServletContext().getRequestDispatcher("/samples/model1/foo.js
p").forward(req, res);
                                                        ^
2 errors

Any ideas?

Kumar

===========================================================================
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".
For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
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".
For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to