Click here to Skip to main content
13,143,774 members (31,909 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi all,
please try to give me satisfactory explanation
<action path="/listforums"
<forward name="success"

Hi all,
Please go through the code above. I have couple of very technical questions in my mind,

(1) in the URI when "http://......../app_name/" request comes, the container will execute the "type" attribute in action tag. i.e. file. Now, when we return mapping.findForward("success"), it will find the logical name "success" in that action tag and forwards the page to the specified path. HERE COMES MY DOUBT. When container see "success" it will display the content of listfurms.jsp page. But what would be the URI at that time on the address bar ???? will it be the same as "http://......../app_name/" or "http://......../app_name/mvnplugin/mvnforum/user/listforums.jsp" ??

(2) what if we've made redirect="true"

[edit by benjymous - added pre tags and escaped your html so we can see your code snippets]
Posted 5-Jan-10 9:09am
Updated 20-Oct-10 11:09am
Henry Minute225.8K

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The URI in the address should be the redirected address, that is the page being shown.

If you specify redirect="true", Struts uses a client-side redirect [response.sendRedirect()]. The JSP will be invoked by a new browser request, and any data stored in the old request will be lost.
Dalek Dave 3-Nov-10 6:22am
Good Call.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 3 Nov 2010
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100