Custom Request Processor runs the same request in a loop
--------------------------------------------------------

                 Key: STR-3039
                 URL: https://issues.apache.org/struts/browse/STR-3039
             Project: Struts 1
          Issue Type: Bug
          Components: Apps
         Environment: Resin 3.0.18 and jdk1.5.0_05
            Reporter: Purushotham Naidu


The custom request processor runs the request in a loop. Please find below the 
custom request processor along with struts configuration.

-- A simple test custom request processor

public class TestRequestProcessor extends TilesRequestProcessor {
  /**
   * Test custom request processor
   * @param request
   * @param response
   * @param action
   * @param form
   * @param mapping
   * @return
   * @throws IOException
   * @throws ServletException
   */
  public ActionForward processActionPerform(HttpServletRequest request,
                                            HttpServletResponse response,
                                            Action action,
                                            ActionForm form,
                                            ActionMapping mapping)
          throws IOException, ServletException {
    // simply forward the request to home page
    return mapping.findForward("test");
  }

}

-- The struts-config.xml

<!-- Global Forward -->
<forward name="test" path="/action/testAction?dispatch=test"
             redirect="false"/>

<!-- Custom request processor -->
<controller  processorClass="com.test.TestRequestProcessor"/>

It is observed if the forward path is changed to a non struts mapping path like 
<forward name="test" path="test.jsp" redirect="false"/> then it is NOT running 
the request in a loop.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to