File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Beginner: Action Forward & Global Forward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Beginner: Action Forward & Global Forward" Watch "Beginner: Action Forward & Global Forward" New topic

Beginner: Action Forward & Global Forward

Marco Vanoli
Ranch Hand

Joined: Jan 12, 2005
Posts: 99
I am following a Tutorial to begin use Struts.
I have to make an automatic <logic:forward name="welcome"/> to a deep tree folder file.(/jsp/index.jsp)

Than i create an Global Forward :
path="/jsp/index.jsp" />

So it works but the tutorial i follow make a different step. It crate an action forward
<action forward="/jsp/index.jsp" path="/default" />
and then the Global forward :
<forward name="welcome" path="/" />

So what are the logic differences between the two aprroach?
Bye Marco

PS: ON action forward,the attribute unknown="true" is only possible when i create a default action?

bye, <br />Marco
It is sorta covered in the JavaRanch Style Guide.
subject: Beginner: Action Forward & Global Forward
It's not a secret anymore!