Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 86809 invoked from network); 13 Aug 2007 10:36:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2007 10:36:05 -0000 Received: (qmail 10377 invoked by uid 500); 13 Aug 2007 10:35:56 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 9943 invoked by uid 500); 13 Aug 2007 10:35:54 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 9932 invoked by uid 99); 13 Aug 2007 10:35:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 03:35:54 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of poojakaur@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO py-out-1112.google.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 10:35:54 +0000 Received: by py-out-1112.google.com with SMTP id p76so2389023pyb for ; Mon, 13 Aug 2007 03:35:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qRbGIkY25VSDkiMVHBiJKl4Dtq/Ke/U4PCVXvkIDvazI4Lta22UJcSM2E3pnwKjoRxUyHM2+u035D6+wrt4jd4d5TSUuhXnv0FIG5egII1ITdkqvoFBstNco7wFYugeEaERFHtlQa809A/gDb9qOybPUu23cXgCYR8apiNXJ+no= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=t3obfbmetsDddXa161T0Je0JcGmJVvLvFecDeP1tEM9yCuANrDUlWh6XigCiPjIP4ZdblCGsX8Ui8NiPSNulztgBtDnnnithGn6efvDDmNI2UrgZhJQjEl66vefHv836aafZ3j8lHfPsamGOlbxMUkyLZimCA+jeC+AfwJ04A6s= Received: by 10.65.241.20 with SMTP id t20mr8135116qbr.1187001333331; Mon, 13 Aug 2007 03:35:33 -0700 (PDT) Received: by 10.65.188.6 with HTTP; Mon, 13 Aug 2007 03:35:33 -0700 (PDT) Message-ID: Date: Mon, 13 Aug 2007 16:05:33 +0530 From: "Pooja Kaur" To: user@struts.apache.org Subject: Re: switch action - doubt In-Reply-To: <46c027a5.27f8720a.2f4a.ffffd5e8@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24706_20284904.1187001333285" References: <46c027a5.27f8720a.2f4a.ffffd5e8@mx.google.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_24706_20284904.1187001333285 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 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 > > > > > > > > 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 > > > > > > > > ------=_Part_24706_20284904.1187001333285--