global forwards vs. simple forwards

2002-10-22 Thread Marcus Biel
When to use global forwards and when to use regular action forwards ?

global-forwards
forward name=actionDone path=/index.jsp/
/global-forwards

or:

action path=/addAlaskaGroup
type=ActionClass
name=ActionForm 
scope=request
input=/index.jsp/
forward name=actionDone path=/index.jsp/
/action


???

thanks in advance,

cya,

marcus

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: global forwards vs. simple forwards

2002-10-22 Thread Lacerda, Wellington (AFIS)
Hi Marcus

Global forwards are to be used when you have paths inside the application
that are recurrent and common to a number of actions. For example: logon.
Every sensitive action in the application will have to check the credentials
of the user, and if the user hasn't logged on yet, the application must
transfer him(er) to the logon page.

A regular forward ordinarily transfers control to some other component in
the application. Most commonly used to go to a view component. You can use
ordinary forwards instead of globals, but it will be redundant.

You can also use the same forward name of a global forward inside an Action
forward. In that case the Action's will override the definition of the
global for that specific mapping (which is the case in your example).

Wellington L. S. da Silva
Author of JSP and Tag Libraries for Web Development
FAO of the UN - Consultant

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Tuesday, October 22, 2002 3:30 PM
To: [EMAIL PROTECTED]
Subject: global forwards vs. simple forwards


When to use global forwards and when to use regular action forwards ?

global-forwards
forward name=actionDone path=/index.jsp/
/global-forwards

or:

action path=/addAlaskaGroup
type=ActionClass
name=ActionForm 
scope=request
input=/index.jsp/
forward name=actionDone path=/index.jsp/
/action


???

thanks in advance,

cya,

marcus

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org