Link to home
Start Free TrialLog in
Avatar of jayz_smith
jayz_smith

asked on

technical doubt in struts-config.xml

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




<action path="/listforums"
            type="com.mvnforum.actions.ListForumsAction">

<forward name="success"
               path="/mvnplugin/mvnforum/user/listforums.jsp"
               redirect="false"/>

</action>

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/listforums.do" request comes, the container will execute the "type" attribut in action tag. i.e. ListForumsAction.java 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/listforums.do" or "http://......../app_name/mvnplugin/mvnforum/user/listforums.jsp"  ??  

(2) what if we've made redirect="true"  
ASKER CERTIFIED SOLUTION
Avatar of boonleng
boonleng
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jayz_smith
jayz_smith

ASKER

perfect answer