Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

technical querry about struts-config.xml

 
jazy smith
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic