File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Struts-config.xml

Zoram Paul
Ranch Hand

Joined: Jul 10, 2007
Posts: 59
In the following tag in struts-config.xml

<action path="/copyUrl"
type="examples.simple.CopyUrlAction"
name="CopyUrlBean"
scope="request"
input="/jsp/simple/urlPage.jsp"
cancellable="true"
validate="true">
<forward name="success" path="/jsp/simple/urlPage.jsp"/>
<forward name="failure" path="/jsp/simple/urlPage.jsp"/>
</action>


Can I replace
<forward name="success" path="/jsp/simple/urlPage.jsp"/>
<forward name="failure" path="/jsp/simple/urlPage.jsp"/>

with

<redirect name="success" path="/jsp/simple/urlPage.jsp"/>
<redirect name="failure" path="/jsp/simple/urlPage.jsp"/>

Can you tell me whats the difference between them?
When should I use and which one?




Please reply...


ZORAM<br />"If it's true that we are here to help others,<br />then what exactly are the others here for?"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts-config.xml