technical doubt in struts-config.xml

Hi all,
please try to give me satisfactory explaination ....

<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" attribut 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"  
Who is Participating?
set redirect="false" will see "http://......../app_name/" coz is using RequestDispatcher.forward().

set redirect="true" will see "http://......../app_name/mvnplugin/mvnforum/user/listforums.jsp" coz is using HttpServletResponse.sendRedirect()
Gurvinder Pal SinghCommented:
2) 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.

check this link

1) redirect="true" means that you are choosing response redirect over response forward, so you will see http://......../app_name/mvnplugin/mvnforum/user/listforums.jsp

jayz_smithAuthor Commented:
perfect answer
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.