Return-Path: X-Original-To: apmail-struts-dev-archive@www.apache.org Delivered-To: apmail-struts-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C663FEDC for ; Tue, 26 Mar 2013 08:36:02 +0000 (UTC) Received: (qmail 15113 invoked by uid 500); 26 Mar 2013 08:36:02 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 15033 invoked by uid 500); 26 Mar 2013 08:36:01 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 57301 invoked by uid 99); 26 Mar 2013 02:18:50 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of dpriya.pratheep@gmail.com) Date: Mon, 25 Mar 2013 19:18:25 -0700 (PDT) From: priyapratheep To: dev@struts.apache.org Message-ID: <1364264305919-5712300.post@n5.nabble.com> Subject: How to redirect ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi friends I am using Lifray portlet and struts. I am redirection from one portlet to another portlet Below is my code >From Portlet "> ">link to document library In Portlet 2,I am using struts My code is In struts-config.xml file My portlet.xml file com.bmtap.apse.projectmgmt.portlet.ProjectMgmtPortlet ServletContextProvider com.liferay.util.bridges.struts.LiferayServletContextProviderWrapper ViewPage /apse-projectmgmt-portlet/portlet_action/apse-projectmgmt-portlet/viewAction Once I click link to document library in portlet 1 My page is redirected to project_list.jsp . But I want to redirect to project_costingsheet2.jsp with form variables procode, csid. One more question how can assign form variable? receiving variable through public void processAction(ActionRequest req, ActionResponse res,ActionMapping mapping) throws PortletException, IOException { String procode=req.getParameter("procode"); String csid=req.getParameter("csid"); I can receive variable procode and csid and how make them to my form parameters .. My Action class public class ProjectMgmtAction extends Action{ @Override public ActionForward execute(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) throws Exception{ ... DynaActionForm actionform=(DynaActionForm)form; String procode = (String)actionform.get("procode"); request.setAttribute("procode", procode); I am new to struts and Lifray . Please help me sort out this Thanks in advance Priya -- View this message in context: http://struts.1045723.n5.nabble.com/How-to-redirect-tp5712300.html Sent from the Struts - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org