Thank you Merrill for your pointer...
I did see the JavaDocs. The entry for findForward says that findForward() returns local or global forward with the specified name -
public ActionForward findForward(java.lang.String forwardName)
Find and return the ForwardConfig instance defining how forwarding to the specified logical name should be handled. This is performed by checking local and then global configurations for the specified forwarding configuration. If no forwarding configuration can be found, return null.
Parameters:
forwardName - Logical name of the forwarding instance to be returned
Returns:
The local or global forward with the specified name.
That was the reason, I had the opinion I initially stated. If there was a error in my understanding, I would like to stand corrected.
If I want to use actionMapping.findForwardConfig("notLoggedIn") [instead of actionMapping.findForward("notLoggedIn")] how would I go about doing it? The former returns ForwardConfig object.
I would like the request to be sent to the path specified by the name "notLoggedIn" in <global-forwards> section of the struts-config.xml
Appreciate your help!