JWS 2.0 beta2
Windows NT SP-4
I presume JWS 2.0 beta 2 supports Java Servlet API 2.1.
Kumar
Srikala Golla wrote:
> RequestDispatcher is a new classs in JSDK2.1. Check the version
> of JSDK you are running.
>
> srikala.
>
> 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