You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Zatko <mz...@boscovs.com> on 2004/03/12 19:45:56 UTC

[SwitchAction] How

Hello,
    Does anyone have a simple example on how to use a SwitchAction? How 
is it defined properly in the config file?

Thanks

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


RE: [SwitchAction] How do you switch in between application contexts?

Posted by Robert Taylor <rt...@mulework.com>.
In your struts-config.xml file you can define forwards to redirect instead of forwarding.

robert

> -----Original Message-----
> From: Mike Zatko [mailto:mzatko@boscovs.com]
> Sent: Monday, March 15, 2004 11:11 AM
> To: Struts Users Mailing List
> Subject: Re: [SwitchAction] How do you switch in between application
> contexts?
> 
> 
> I know, I'm sorry I meant redirect. I'm just wondering if struts allows 
> an elegent way to create redirects to other applications without 
> hardcoding it?
> 
> Robert Taylor wrote:
> 
> >Mike, I don't believe the Servlet spec. allows you to forward to another web application.
> >You will have to redirect. 
> >
> >robert
> >
> >  
> >
> >>-----Original Message-----
> >>From: Mike Zatko [mailto:mzatko@boscovs.com]
> >>Sent: Monday, March 15, 2004 9:14 AM
> >>To: Struts Users Mailing List
> >>Subject: Re: [SwitchAction] How do you switch in between application
> >>contexts?
> >>
> >>
> >>Ok, I don't think SwitchAction is going to do what I thought it was 
> >>meant for. I need to know how to forward control to another web 
> >>application. Right now, in my action, I'm doing a response.sendRedirect 
> >>and returning null to the action forward. I figure there has to be a 
> >>more graceful way built into struts but it eludes me. Thanks for any input.
> >>
> >>Mike Zatko
> >>
> >>
> >>
> >>James Mitchell wrote:
> >>
> >>    
> >>
> >>>http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=74324
> >>>&release_id=147944
> >>>
> >>>--
> >>>James Mitchell
> >>>Software Engineer / Open Source Evangelist
> >>>EdgeTech, Inc.
> >>>678.910.8017
> >>>AIM: jmitchtx
> >>>MSN: jmitchell@apache.org
> >>>Yahoo IM:jmitchtx@yahoo.com
> >>>
> >>>
> >>>
> >>>"Mike Zatko" <mz...@boscovs.com> wrote in message
> >>>news:40520564.5010409@boscovs.com...
> >>> 
> >>>
> >>>      
> >>>
> >>>>Hello,
> >>>>   Does anyone have a simple example on how to use a SwitchAction? How
> >>>>is it defined properly in the config file?
> >>>>
> >>>>Thanks
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>>
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>-- 
> >>
> >>Michael H. Zatko
> >>WebSphere Developer
> >>Boscov's Information Services
> >>Work: 610-929-7317
> >>Home: 610-562-2407
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>
> >>    
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >  
> >
> 
> 
> -- 
> 
> Michael H. Zatko
> WebSphere Developer
> Boscov's Information Services
> Work: 610-929-7317
> Home: 610-562-2407
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

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


Re: [SwitchAction] How do you switch in between application contexts?

Posted by Mike Zatko <mz...@boscovs.com>.
I know, I'm sorry I meant redirect. I'm just wondering if struts allows 
an elegent way to create redirects to other applications without 
hardcoding it?

Robert Taylor wrote:

>Mike, I don't believe the Servlet spec. allows you to forward to another web application.
>You will have to redirect. 
>
>robert
>
>  
>
>>-----Original Message-----
>>From: Mike Zatko [mailto:mzatko@boscovs.com]
>>Sent: Monday, March 15, 2004 9:14 AM
>>To: Struts Users Mailing List
>>Subject: Re: [SwitchAction] How do you switch in between application
>>contexts?
>>
>>
>>Ok, I don't think SwitchAction is going to do what I thought it was 
>>meant for. I need to know how to forward control to another web 
>>application. Right now, in my action, I'm doing a response.sendRedirect 
>>and returning null to the action forward. I figure there has to be a 
>>more graceful way built into struts but it eludes me. Thanks for any input.
>>
>>Mike Zatko
>>
>>
>>
>>James Mitchell wrote:
>>
>>    
>>
>>>http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=74324
>>>&release_id=147944
>>>
>>>--
>>>James Mitchell
>>>Software Engineer / Open Source Evangelist
>>>EdgeTech, Inc.
>>>678.910.8017
>>>AIM: jmitchtx
>>>MSN: jmitchell@apache.org
>>>Yahoo IM:jmitchtx@yahoo.com
>>>
>>>
>>>
>>>"Mike Zatko" <mz...@boscovs.com> wrote in message
>>>news:40520564.5010409@boscovs.com...
>>> 
>>>
>>>      
>>>
>>>>Hello,
>>>>   Does anyone have a simple example on how to use a SwitchAction? How
>>>>is it defined properly in the config file?
>>>>
>>>>Thanks
>>>>   
>>>>
>>>>        
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>> 
>>>
>>>      
>>>
>>-- 
>>
>>Michael H. Zatko
>>WebSphere Developer
>>Boscov's Information Services
>>Work: 610-929-7317
>>Home: 610-562-2407
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>  
>


-- 

Michael H. Zatko
WebSphere Developer
Boscov's Information Services
Work: 610-929-7317
Home: 610-562-2407


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


RE: [SwitchAction] How do you switch in between application contexts?

Posted by Robert Taylor <rt...@mulework.com>.
Mike, I don't believe the Servlet spec. allows you to forward to another web application.
You will have to redirect. 

robert

> -----Original Message-----
> From: Mike Zatko [mailto:mzatko@boscovs.com]
> Sent: Monday, March 15, 2004 9:14 AM
> To: Struts Users Mailing List
> Subject: Re: [SwitchAction] How do you switch in between application
> contexts?
> 
> 
> Ok, I don't think SwitchAction is going to do what I thought it was 
> meant for. I need to know how to forward control to another web 
> application. Right now, in my action, I'm doing a response.sendRedirect 
> and returning null to the action forward. I figure there has to be a 
> more graceful way built into struts but it eludes me. Thanks for any input.
> 
> Mike Zatko
> 
> 
> 
> James Mitchell wrote:
> 
> >http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=74324
> >&release_id=147944
> >
> >--
> >James Mitchell
> >Software Engineer / Open Source Evangelist
> >EdgeTech, Inc.
> >678.910.8017
> >AIM: jmitchtx
> >MSN: jmitchell@apache.org
> >Yahoo IM:jmitchtx@yahoo.com
> >
> >
> >
> >"Mike Zatko" <mz...@boscovs.com> wrote in message
> >news:40520564.5010409@boscovs.com...
> >  
> >
> >>Hello,
> >>    Does anyone have a simple example on how to use a SwitchAction? How
> >>is it defined properly in the config file?
> >>
> >>Thanks
> >>    
> >>
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >  
> >
> 
> 
> -- 
> 
> Michael H. Zatko
> WebSphere Developer
> Boscov's Information Services
> Work: 610-929-7317
> Home: 610-562-2407
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

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


Re: [SwitchAction] How do you switch in between application contexts?

Posted by Mike Zatko <mz...@boscovs.com>.
Ok, I don't think SwitchAction is going to do what I thought it was 
meant for. I need to know how to forward control to another web 
application. Right now, in my action, I'm doing a response.sendRedirect 
and returning null to the action forward. I figure there has to be a 
more graceful way built into struts but it eludes me. Thanks for any input.

Mike Zatko



James Mitchell wrote:

>http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=74324
>&release_id=147944
>
>--
>James Mitchell
>Software Engineer / Open Source Evangelist
>EdgeTech, Inc.
>678.910.8017
>AIM: jmitchtx
>MSN: jmitchell@apache.org
>Yahoo IM:jmitchtx@yahoo.com
>
>
>
>"Mike Zatko" <mz...@boscovs.com> wrote in message
>news:40520564.5010409@boscovs.com...
>  
>
>>Hello,
>>    Does anyone have a simple example on how to use a SwitchAction? How
>>is it defined properly in the config file?
>>
>>Thanks
>>    
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>  
>


-- 

Michael H. Zatko
WebSphere Developer
Boscov's Information Services
Work: 610-929-7317
Home: 610-562-2407


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


Re: [SwitchAction] How

Posted by James Mitchell <jm...@apache.org>.
http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=74324
&release_id=147944

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: jmitchell@apache.org
Yahoo IM:jmitchtx@yahoo.com



"Mike Zatko" <mz...@boscovs.com> wrote in message
news:40520564.5010409@boscovs.com...
> Hello,
>     Does anyone have a simple example on how to use a SwitchAction? How
> is it defined properly in the config file?
>
> Thanks




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