This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts-config.xml" Watch "struts-config.xml" New topic


jazy smith
Ranch Hand

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

<action path="/logout"

<forward name="loggedout"


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

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

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