I'm upgrading our application from an old version of struts to the latest '1' version: 1.3.10. Now, our code that attempts to process the Action is always getting back a null forward object. I attached the struts source code, and it looks like it ALWAYS returns null. Prior to upgrading our code worked fine and the forward object was populated when it returned.
forward = super.processActionPerform(request, response, action, formInstance, mapping);
return (forward);
Now, here's the Struts code for processActionPerform:
protected ActionForward processActionPerform(HttpServletRequest request,
HttpServletResponse response, Action action, ActionForm form,
ActionMapping mapping)
throws IOException, ServletException {
try {
return (action.execute(mapping, form, request, response));
} catch (Exception e) {
return (processException(request, response, e, form, mapping));
}
}
As you can see, this calls the Action execute method. Below is the Struts execute method code, which you can see always returns null.
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
return null;
}
I'm wondering if I need to change to use a different Struts class or method to get this to work. Any assistance would be appreciated.
Thanks!