Re: Using modules and actionforward to an action

2003-06-26 Thread Jing Zhou
Have you tried this?
return new ActionForward("/logout.do");

I guess you are almost there.

Jing

- Original Message - 
From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 11:58 PM
Subject: RE: Using modules and actionforward to an action


no ...

-Original Message-
From: Sergey Smirnov [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:27 AM
To: Struts Users Mailing List
Subject: Re: Using modules and actionforward to an action


Do you use contextRelative="true" to switch between modules?

- Original Message - 
From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 9:29 PM
Subject: Using modules and actionforward to an action




For logging out I use this piece of code :

RequestUtils.selectModule("", req,
getServlet().getServletContext());
return (new ActionForward("/AuthFail.jsp"));

I don't want to hardcode "/AuthFail.jsp"
instead of that i want to forward to an action "/logout" defined in the
default servlet-config.xml
I tried this
return (new ActionForward("/logout"));
and in the servlet-config.xml


but no success.

Suggestions ... 









> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using modules and actionforward to an action

2003-06-25 Thread Navjot Singh
say your context is /myapp & you have module /modA

and you have 2 files
/myapp/login.jsp
/myapp/modA/login.jsp

if in modules' struts config, you say contextRelative="true",
it will pick the first one. otherwsie, second one.

RTM
-navjot

|-Original Message-
|From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 11:38 AM
|To: Struts Users Mailing List
|Subject: RE: Using modules and actionforward to an action
|
|
|BTW
| what is contextRelative="true" all about .. ??
|
|-Original Message-
|From: Navjot Singh [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 10:54 AM
|To: Struts Users Mailing List
|Subject: RE: Using modules and actionforward to an action
|
|
|abhinav, the best solution is to keep "/logout" as global-forward in all of
|you module configs.
|then you can call mapping.findForward("/logout") from any
|modules's action.
|
|HTH
|Navjot Singh
|
||-Original Message-
||From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
||Sent: Thursday, June 26, 2003 10:29 AM
||To: Struts Users Mailing List
||Subject: RE: Using modules and actionforward to an action
||
||
||no ...
||
||-Original Message-
||From: Sergey Smirnov [mailto:[EMAIL PROTECTED]
||Sent: Thursday, June 26, 2003 10:27 AM
||To: Struts Users Mailing List
||Subject: Re: Using modules and actionforward to an action
||
||
||Do you use contextRelative="true" to switch between modules?
||
||- Original Message -
||From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
||To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
||Sent: Wednesday, June 25, 2003 9:29 PM
||Subject: Using modules and actionforward to an action
||
||
||
||
||For logging out I use this piece of code :
||
||RequestUtils.selectModule("", req,
||getServlet().getServletContext());
||return (new ActionForward("/AuthFail.jsp"));
||
||I don't want to hardcode "/AuthFail.jsp"
||instead of that i want to forward to an action "/logout" defined in the
||default servlet-config.xml
||I tried this
||return (new ActionForward("/logout"));
||and in the servlet-config.xml
||
||
||but no success.
||
||Suggestions ... 
||
||
||
||
||
||---
||-
||
||
||
||> -
||> To unsubscribe, e-mail: [EMAIL PROTECTED]
||> For additional commands, e-mail: [EMAIL PROTECTED]
||
||
||-
||To unsubscribe, e-mail: [EMAIL PROTECTED]
||For additional commands, e-mail: [EMAIL PROTECTED]
||
||
||
|
|
|-
|To unsubscribe, e-mail: [EMAIL PROTECTED]
|For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using modules and actionforward to an action

2003-06-25 Thread Abhinav (Cognizant)
BTW 
 what is contextRelative="true" all about .. ??

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:54 AM
To: Struts Users Mailing List
Subject: RE: Using modules and actionforward to an action


abhinav, the best solution is to keep "/logout" as global-forward in all of
you module configs.
then you can call mapping.findForward("/logout") from any  modules's action.

HTH
Navjot Singh

|-Original Message-
|From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 10:29 AM
|To: Struts Users Mailing List
|Subject: RE: Using modules and actionforward to an action
|
|
|no ...
|
|-Original Message-
|From: Sergey Smirnov [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 10:27 AM
|To: Struts Users Mailing List
|Subject: Re: Using modules and actionforward to an action
|
|
|Do you use contextRelative="true" to switch between modules?
|
|- Original Message -
|From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
|To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
|Sent: Wednesday, June 25, 2003 9:29 PM
|Subject: Using modules and actionforward to an action
|
|
|
|
|For logging out I use this piece of code :
|
|RequestUtils.selectModule("", req,
|getServlet().getServletContext());
|return (new ActionForward("/AuthFail.jsp"));
|
|I don't want to hardcode "/AuthFail.jsp"
|instead of that i want to forward to an action "/logout" defined in the
|default servlet-config.xml
|I tried this
|return (new ActionForward("/logout"));
|and in the servlet-config.xml
|
|
|but no success.
|
|Suggestions ... 
|
|
|
|
|
|---
|-
|
|
|
|> -
|> To unsubscribe, e-mail: [EMAIL PROTECTED]
|> For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|-
|To unsubscribe, e-mail: [EMAIL PROTECTED]
|For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm

No Virus detected in the attached file(s).
* End of message ***


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. If you are not 
the 
intended recipient, please contact the sender by reply e-mail and destroy all copies 
of 
the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying 
of this email or any action taken in reliance on this e-mail is strictly prohibited 
and 
may be unlawful.

  Visit us at http://www.cognizant.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Using modules and actionforward to an action

2003-06-25 Thread Navjot Singh
abhinav, the best solution is to keep "/logout" as global-forward in all of
you module configs.
then you can call mapping.findForward("/logout") from any  modules's action.

HTH
Navjot Singh

|-Original Message-
|From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 10:29 AM
|To: Struts Users Mailing List
|Subject: RE: Using modules and actionforward to an action
|
|
|no ...
|
|-Original Message-
|From: Sergey Smirnov [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 10:27 AM
|To: Struts Users Mailing List
|Subject: Re: Using modules and actionforward to an action
|
|
|Do you use contextRelative="true" to switch between modules?
|
|- Original Message -
|From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
|To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
|Sent: Wednesday, June 25, 2003 9:29 PM
|Subject: Using modules and actionforward to an action
|
|
|
|
|For logging out I use this piece of code :
|
|RequestUtils.selectModule("", req,
|getServlet().getServletContext());
|return (new ActionForward("/AuthFail.jsp"));
|
|I don't want to hardcode "/AuthFail.jsp"
|instead of that i want to forward to an action "/logout" defined in the
|default servlet-config.xml
|I tried this
|return (new ActionForward("/logout"));
|and in the servlet-config.xml
|
|
|but no success.
|
|Suggestions ... 
|
|
|
|
|
|---
|-
|
|
|
|> -
|> To unsubscribe, e-mail: [EMAIL PROTECTED]
|> For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|-
|To unsubscribe, e-mail: [EMAIL PROTECTED]
|For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using modules and actionforward to an action

2003-06-25 Thread Abhinav (Cognizant)
no ... 

-Original Message-
From: Sergey Smirnov [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:27 AM
To: Struts Users Mailing List
Subject: Re: Using modules and actionforward to an action


Do you use contextRelative="true" to switch between modules?

- Original Message - 
From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 9:29 PM
Subject: Using modules and actionforward to an action




For logging out I use this piece of code :

RequestUtils.selectModule("", req,
getServlet().getServletContext());
return (new ActionForward("/AuthFail.jsp"));

I don't want to hardcode "/AuthFail.jsp"
instead of that i want to forward to an action "/logout" defined in the
default servlet-config.xml
I tried this
return (new ActionForward("/logout"));
and in the servlet-config.xml


but no success.

Suggestions ... 









> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm

No Virus detected in the attached file(s).
* End of message ***


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. If you are not 
the 
intended recipient, please contact the sender by reply e-mail and destroy all copies 
of 
the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying 
of this email or any action taken in reliance on this e-mail is strictly prohibited 
and 
may be unlawful.

  Visit us at http://www.cognizant.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using modules and actionforward to an action

2003-06-25 Thread Sergey Smirnov
Do you use contextRelative="true" to switch between modules?

- Original Message - 
From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 9:29 PM
Subject: Using modules and actionforward to an action




For logging out I use this piece of code :

RequestUtils.selectModule("", req,
getServlet().getServletContext());
return (new ActionForward("/AuthFail.jsp"));

I don't want to hardcode "/AuthFail.jsp"
instead of that i want to forward to an action "/logout" defined in the
default servlet-config.xml
I tried this
return (new ActionForward("/logout"));
and in the servlet-config.xml


but no success.

Suggestions ... 









> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]