struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pooja Kaur" <poojak...@gmail.com>
Subject Re: switch action - doubt
Date Mon, 13 Aug 2007 10:35:33 GMT
Thanks all for replying.
Here is my actual problem statement:
I have one web project named eg. "Training"
and 2nd project named eg. "Test".
The login to application is through the "Test" Project. I want a link in the
Test project which points to the "Training" project and this 'Training"
project should be able to get the user details from the session.
What I have done is:
I created a WAR file for this new Training project and put this war file in
the EAR file of the "Test" project. In this application.xml file of "Test"
project, now there are 2 wars present with different context roots.
I tried using SwitchAction to switch between these war files and have
mentioned the problems i am facing.
Is there a better and feasible way to implement this scenario. I am running
my appl through WSAD.


On 8/13/07, Nagraj Rao <nagraj.rao@sigmainfo.net> wrote:
>
>
> Are you submitting any request params or simply redirecting it to the new
> URL??
> I hope simple re-directing should work. For that you can specify
> redirect=true as an attribute in the forward tag.
>
> Sorry to be replying directly. For some reason my mails are  not reaching
> the struts group.
>
> N
>
> -----Original Message-----
> From: Pooja Kaur [mailto:poojakaur@gmail.com]
> Sent: Monday, August 13, 2007 2:44 PM
> To: user@struts.apache.org
> Subject: Re: switch action - doubt
>
> Please anyone reply....
>
>
>
> On 8/13/07, Pooja Kaur <poojakaur@gmail.com> wrote:
> >
> > Hi,
> > I have 2 war files added to an EAR. Both of them have a different
> context
> > root. Eg. Module A has test1 as the context root and Module B has test2
> > I did the following in the struts-config of Module A which is the
> default
> > module:
> > 1. Added an action
> >
> > <action path="/toModule" type="org.apache.struts.actions.SwitchAction"/>
> >
> > 2. The link to switch the module has the URL eg.
> >
> > toModule.do?prefix=/test2
> > &page=/forwardToTrainingDB.do
> >
> > When I click on the link with the above url , i get 400 (Bad Request)
> > Error message.
> >
> > The mapping for forwardToTrainingDB.do is present in the struts-config
> xml
> > file of test2 module.
> >
> > Please help me how to resolve this problem.
> >
> > Thanks
> >
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message