Hi,

when I'm in an ExceptionHandler or inside an action method,
and I forward the control to a specific DispatchAction method,
as in the code below, does struts reset the form ? It seems to me that
it doesn't, but we having some strange behaviours in some forms,
and I would like to be sure of how struts deal with this.

regards,

Miguel

public class MyExceptionHandler extends ExceptionHandler {

   public ActionForward execute(Exception error,
                                ExceptionConfig ec,
                                ActionMapping mapping,
                                ActionForm form,
                                HttpServletRequest request,
                                HttpServletResponse response) throws
ServletException {

       // create a new ActionError object
       ActionMessage ae = new ActionMessage(msg, false);

       // create action forward
       ActionForward forward = new ActionForward(mapping.getPath() +
".do?action=error");

       ex.printStackTrace();

       return forward;
   }

}

--
Miguel Galves - Engenheiro de Computação
Já leu meus blogs hoje?
Para geeks http://log4dev.blogspot.com
Pra pessoas normais
http://miguelgalves.blogspot.com

"Não sabendo que era impossível, ele foi lá e fez..."

Reply via email to