If you are using just Struts, then you have only one servlet, the
ActionServlet.
If you are using struts in conjunction with some other servlets, then in
your action class do this...
public class XYZAction extends Action
{
public ActionForward perform(mapping, form, request, response)
{
request.setAttribute("form", form) ;
servlet.getServletConfig().getServletContext().getRequestDispacher("path
to the other servlet").forward(request,response) ;
}
}
-----Original Message-----
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 2:29 PM
To: Struts
Subject: how to forward from one action servlet to another?
Hi,
how do you forward from one action servlet to another? I have a form that
gets submitted to a servlet that I may depending on a value pass it off to
another servlet to process.
Any help is appreciated.
Alex
ext. 104
Fax: 1-905-777-0132