File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "technical querry about struts-config.xml" Watch "technical querry about struts-config.xml" New topic

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"

<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"
David Newton

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:
subject: technical querry about struts-config.xml
It's not a secret anymore!