On 24/08/2011 03:46, Leo Donahue - PLANDEVX wrote:
> ____________________________________
> From: Donald Jolley [jolleyt...@gmail.com]
> Subject: Conditional Branch from Servlet to URL
> 
> I'm not at all surprised about the "request" and "response" symbols as they 
> appear to be undefined.
> I really expected that getRequestDispatcher would have been found in
> javax.servlet.* which is imported.
>           ... doug
> 
> *************************************
> Shouldn't you import javax.servlet.http ? 
> If your request and response objects are undefined - wish we could see how 
> you declared them, how can RequestDispatcher perform the forward?

@Donald  Usually in a Servlet (your code *is* inside a Servlet isn't
it?) you'd see those two variables defined in the method parameters:

 protected void doGet(HttpServletRequest request, HttpServletResponse
response) throws ... {


p

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to