This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes struts-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts-config.xml" Watch "struts-config.xml" New topic
Author

struts-config.xml

jazy smith
Ranch Hand

Joined: Nov 18, 2009
Posts: 101
Hi all,

<action path="/logout"
type="com.mvnforum.actions.LogoutAction">

<forward name="loggedout"
path="/mvnforum/index"
redirect="true"/>

</action>


in struts-config.xml, (1) what does path attribute in <action> tag and in <forward> tag do ? (2) when does <forward> is executed and how does it's mapping done ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Have you looked at any of the Struts 1 documentation or any of the *many* Struts 1 tutorials available on the web? This is pretty basic Struts stuff--I'd encourage you to at least check out the documentation to get a handle on the fundamentals before proceeding much further.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Also, please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts-config.xml
 
Similar Threads
TagUtils error, help !!!
how to determine the forward? [s1]
getting ClassNotFoundException
Struts with tiles - Urgent help needed.
html:Link not able to retrieve ActionForward