Date: 2004-07-27T14:05:17 Editor: KishoreSenji <[EMAIL PROTECTED]> Wiki: Apache Struts Wiki Page: StrutsCatalogLinkOnlyToActions URL: http://wiki.apache.org/struts/StrutsCatalogLinkOnlyToActions
no comment Change Log: ------------------------------------------------------------------------------ @@ -12,3 +12,15 @@ We have adopted this approach in many of our projects. -- Puneet Agarwal + +----- + +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''' 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'''. + +--KishoreSenji --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]