Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification.
The following page has been changed by MichaelJouravlev:
If a JSP ends up on your browser's address bar after the initial index page, then you're missing an Action ;-)
-- TedHusted
-
+ Related errors
- Comments:
- This is a great approach, it helps us load the Domain Values(List for Drop-Down) from database if required.
- 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:formtag, an exception
such as '''Cannot retrieve mapping for Action /action''' can be thrown, if the <html:formtag's action path is referencing
+ an action in a submodule.
- an action in a submodule. The reason being <html:formtag 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).
- more reason for '''Linking only to Actions'''.
-
+ See more: