You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vinod Kumar R <vi...@wisorindia.soft.net> on 2003/04/28 10:45:36 UTC

switching modules using struts

Hi,

How do i switch between web modules using struts 1.0.2.
Assume that i have two web applications on my server.
1) DefaultWebApplication
2) webapp

Now in my webapp , struts-config, i want to configure an action mapping,
which will forward the request to an ActionForm in the
DefaultWebApplication.

Using struts 1.1 i can set the contextRelative attribute of the forward tag
to achieve this.
But i want to achieve the same thing with struts 1.0.2

Any help would be appreciated.

thanks in advance
vinod


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


Re: switching modules using struts

Posted by James Mitchell <jm...@apache.org>.
On Wednesday 30 April 2003 03:22 am, Vinod Kumar R wrote:
> yes it works, but the switching is not handled by struts.
> it is done manually.

Could you post your web.xml?

>
> -----Original Message-----
> From: James Mitchell [mailto:jmitchell@apache.org]
> Sent: Tuesday, April 29, 2003 7:43 PM
> To: Struts Users Mailing List
> Subject: Re: switching modules using struts
>
>
> Are you saying that you have modules working with Struts 1.0.2?

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




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


RE: switching modules using struts

Posted by Vinod Kumar R <vi...@wisorindia.soft.net>.
yes it works, but the switching is not handled by struts.
it is done manually.

-----Original Message-----
From: James Mitchell [mailto:jmitchell@apache.org]
Sent: Tuesday, April 29, 2003 7:43 PM
To: Struts Users Mailing List
Subject: Re: switching modules using struts


Are you saying that you have modules working with Struts 1.0.2?

--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org



----- Original Message -----
From: "Vinod Kumar R" <vi...@wisorindia.soft.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Tuesday, April 29, 2003 1:18 AM
Subject: RE: switching modules using struts


> So does that mean, by using struts 1.0.x i can not switch between modules
> or is there any work around to achive the same.
> For now i have fixed it by doing a response.sendRedirect in my perform
> method of the controller.
> And i think this is not the cleanest way to do that. Any other solution
> would be appreciated.
>
> -----Original Message-----
> From: James Mitchell [mailto:jmitchell@apache.org]
> Sent: Monday, April 28, 2003 4:12 PM
> To: Struts Users Mailing List
> Subject: Re: switching modules using struts
>
>
> On Monday 28 April 2003 04:45 am, Vinod Kumar R wrote:
> > Hi,
> >
> > How do i switch between web modules using struts 1.0.2.
> > Assume that i have two web applications on my server.
> > 1) DefaultWebApplication
> > 2) webapp
> >
> > Now in my webapp , struts-config, i want to configure an action mapping,
> > which will forward the request to an ActionForm in the
> > DefaultWebApplication.
> >
> > Using struts 1.1 i can set the contextRelative attribute of the forward
> tag
> > to achieve this.
> > But i want to achieve the same thing with struts 1.0.2
> >
> > Any help would be appreciated.
>
> Modules are not supported in that version.  You must use 1.1.x codebase to
> take advantage of Modules.
>
> >
> > thanks in advance
> > vinod
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> --
> James Mitchell
> Software Developer/Struts Evangelist
> http://www.open-tools.org
>
>
>
>
>
> ---------------------------------------------------------------------
> 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: switching modules using struts

Posted by James Mitchell <jm...@apache.org>.
Are you saying that you have modules working with Struts 1.0.2?

--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org



----- Original Message -----
From: "Vinod Kumar R" <vi...@wisorindia.soft.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Tuesday, April 29, 2003 1:18 AM
Subject: RE: switching modules using struts


> So does that mean, by using struts 1.0.x i can not switch between modules
> or is there any work around to achive the same.
> For now i have fixed it by doing a response.sendRedirect in my perform
> method of the controller.
> And i think this is not the cleanest way to do that. Any other solution
> would be appreciated.
>
> -----Original Message-----
> From: James Mitchell [mailto:jmitchell@apache.org]
> Sent: Monday, April 28, 2003 4:12 PM
> To: Struts Users Mailing List
> Subject: Re: switching modules using struts
>
>
> On Monday 28 April 2003 04:45 am, Vinod Kumar R wrote:
> > Hi,
> >
> > How do i switch between web modules using struts 1.0.2.
> > Assume that i have two web applications on my server.
> > 1) DefaultWebApplication
> > 2) webapp
> >
> > Now in my webapp , struts-config, i want to configure an action mapping,
> > which will forward the request to an ActionForm in the
> > DefaultWebApplication.
> >
> > Using struts 1.1 i can set the contextRelative attribute of the forward
> tag
> > to achieve this.
> > But i want to achieve the same thing with struts 1.0.2
> >
> > Any help would be appreciated.
>
> Modules are not supported in that version.  You must use 1.1.x codebase to
> take advantage of Modules.
>
> >
> > thanks in advance
> > vinod
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> --
> James Mitchell
> Software Developer/Struts Evangelist
> http://www.open-tools.org
>
>
>
>
>
> ---------------------------------------------------------------------
> 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: switching modules using struts

Posted by Vinod Kumar R <vi...@wisorindia.soft.net>.
So does that mean, by using struts 1.0.x i can not switch between modules
or is there any work around to achive the same.
For now i have fixed it by doing a response.sendRedirect in my perform
method of the controller.
And i think this is not the cleanest way to do that. Any other solution
would be appreciated.

-----Original Message-----
From: James Mitchell [mailto:jmitchell@apache.org]
Sent: Monday, April 28, 2003 4:12 PM
To: Struts Users Mailing List
Subject: Re: switching modules using struts


On Monday 28 April 2003 04:45 am, Vinod Kumar R wrote:
> Hi,
>
> How do i switch between web modules using struts 1.0.2.
> Assume that i have two web applications on my server.
> 1) DefaultWebApplication
> 2) webapp
>
> Now in my webapp , struts-config, i want to configure an action mapping,
> which will forward the request to an ActionForm in the
> DefaultWebApplication.
>
> Using struts 1.1 i can set the contextRelative attribute of the forward
tag
> to achieve this.
> But i want to achieve the same thing with struts 1.0.2
>
> Any help would be appreciated.

Modules are not supported in that version.  You must use 1.1.x codebase to
take advantage of Modules.

>
> thanks in advance
> vinod
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org





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


Re: switching modules using struts

Posted by James Mitchell <jm...@apache.org>.
On Monday 28 April 2003 04:45 am, Vinod Kumar R wrote:
> Hi,
>
> How do i switch between web modules using struts 1.0.2.
> Assume that i have two web applications on my server.
> 1) DefaultWebApplication
> 2) webapp
>
> Now in my webapp , struts-config, i want to configure an action mapping,
> which will forward the request to an ActionForm in the
> DefaultWebApplication.
>
> Using struts 1.1 i can set the contextRelative attribute of the forward tag
> to achieve this.
> But i want to achieve the same thing with struts 1.0.2
>
> Any help would be appreciated.

Modules are not supported in that version.  You must use 1.1.x codebase to 
take advantage of Modules.

>
> thanks in advance
> vinod
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




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