File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
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.
It is sorta covered in the JavaRanch Style Guide.
subject: struts-config.xml
It's not a secret anymore!