For example:

public class MyServlet extends HttpServlet{
  public void service(ServletRequest req, ServletResponse res) throws
ServletEx
      PrintWriter out = res.getWriter();
      out.println("Hello! <br>\n Calling my TryServlet!");

getServletConfig().getServletContext().getNamedDispatcher("TryServlet").forward(req,
res);
  }
}


On Wed, 28 Feb 2001, Oscar [iso-8859-1] P�rez wrote:

> How do I set the servlet target with
> RequestDispatcher.forward(request,response)?
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to