Differences between revisions 1 and 2
Revision 1 as of 2006-07-18 21:13:48
Size: 814
Comment:
Revision 2 as of 2009-09-20 23:12:36
Size: 815
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
[:StrutsCatalogLinkOnlyToActions:Link only to Actions] pattern gets rid of this exception, since the corresponding '''ModuleConfig''' is placed in the request by ActionServlet (or RequestProcessor). One more reason for linking only to Actions. [[StrutsCatalogLinkOnlyToActions|Link only to Actions]] pattern gets rid of this exception, since the corresponding '''ModuleConfig''' is placed in the request by ActionServlet (or RequestProcessor). One more reason for linking only to Actions.

If the Application is split in to different modules and if the flow goes to the JSP, with an <html:form> tag, an exception such as Cannot retrieve mapping for Action /action can be thrown, if the <html:form> tag's action path is referencing an action in a submodule. The reason being <html:form> tag looks for the ModuleConfig first in the request, if it doesn't find it there, it retrieves from the ServletContext. Since, the tag cannot know the module the action belongs to it retrieves the default ModuleConfig and so the exception.

Link only to Actions pattern gets rid of this exception, since the corresponding ModuleConfig is placed in the request by ActionServlet (or RequestProcessor). One more reason for linking only to Actions.

ErrorCannotRetrieveMappingForAction (last edited 2009-09-20 23:12:36 by localhost)