aspose file tools*
The moose likes Struts and the fly likes technical querry about struts-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "technical querry about struts-config.xml" Watch "technical querry about struts-config.xml" New topic
Author

technical querry about struts-config.xml

jazy smith
Ranch Hand

Joined: Nov 18, 2009
Posts: 101
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"
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Geez, just try it.

(And these aren't particularly technical questions--they're very basic to how web applications in general, and Struts specifically, function.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: technical querry about struts-config.xml