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 D9DB810A6E for ; Wed, 12 Mar 2014 22:33:42 +0000 (UTC) Received: (qmail 67379 invoked by uid 500); 12 Mar 2014 22:33:41 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 67306 invoked by uid 500); 12 Mar 2014 22:33:41 -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 67297 invoked by uid 99); 12 Mar 2014 22:33:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2014 22:33:41 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of togauravdaga@gmail.com designates 209.85.223.170 as permitted sender) Received: from [209.85.223.170] (HELO mail-ie0-f170.google.com) (209.85.223.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2014 22:33:34 +0000 Received: by mail-ie0-f170.google.com with SMTP id rd18so158316iec.15 for ; Wed, 12 Mar 2014 15:33:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lL3eerBnyTPKsm9+2VLoYNbdGWcKB8I3ktJKNZVQu5A=; b=IUzufd8IPpR9DdLpZR084paVvYZhoqJhOp6RqgO/UoTzYAuNxfb0HEWK5nW+0Ug5zI Pzd17rCTZXelKRtPxibWXTy+TlS4KEdjuMi1ZelygbOBVgH4jg7nlisSKoVtqqIpUFOK 4VNwlTLZkFgrw+/qawCiYYlXdoWGDU+nFLoqueteXzjo3R+ewlgnrLJyci3sq4WJ+lKl N6hx729XXNGqa03Mpu9k+TZjtMVuBirpVlFaETOKKqIK2hEoTm+SnQSGm3nCCQq8TQJ1 1dCruYhEFsM9/tD62UABIEv2wWCBVynR3D6V0gNHVQb1FpBdvJTXMkKt3yPL2vVel+G9 CsDw== MIME-Version: 1.0 X-Received: by 10.50.62.51 with SMTP id v19mr32306305igr.21.1394663585347; Wed, 12 Mar 2014 15:33:05 -0700 (PDT) Received: by 10.43.49.69 with HTTP; Wed, 12 Mar 2014 15:33:05 -0700 (PDT) Date: Wed, 12 Mar 2014 15:33:05 -0700 Message-ID: Subject: Struts2 URL generation for Portlet AJAX From: Gaurav Daga To: Struts Developers List Content-Type: multipart/alternative; boundary=047d7bdc18e69601cc04f4706ba9 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc18e69601cc04f4706ba9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello All I am using following construct to generate AJAX endpoint in a portlet application (JSR-286 based). I have a form field to be carry forward on multiple pages and it started coming as array. While troubleshooting, I noticed that request is bringing this value twice. Also in AJAX call from jQuery function I ensured that data getting submitted has only one value. I investigated it further and then I found that generated url, is capturing values from the action stack. And it carry forward old value stack to next values. Now I dont want to carry forward these values, what are my options? I tried includeContext=3D"false", and includeParams=3D"none", both didn't = give me desired results. Can someone please help me to "not to include values from the old stack"? Here is example of what is happening: *First request execution * [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Key : struts.portlet.mode [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Value : Values : 0 view [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Key : selectedOfficeCod= e [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Value : Values : 0 CO [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Key : struts.portlet.action [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Value : Values : 0 /CaseTaskPortlet/view/CaseTaskPortlet/view/TaskViewAction.navigateToApplica= tions *Second request execution * 3/12/14 15:16:56:555 PDT] 00000023 SystemOut O +++++++++++++++++ Resource Request +++++++++++++++++++++ [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Key : pagingBean.commandTypeCode [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Value : Values : 0 taskViewCMD [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Key : struts.portlet.mode [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Value : Values : 0 view 1 view [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Key : pagingBean.pageSize [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Value : Values : 0 20 [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Key : selectedOfficeCod= e [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Value : Values : 0 CO 1 CO [3/12/14 15:16:56:556 PDT] 00000023 SystemOut O Key : struts.portlet.action [3/12/14 15:16:56:556 PDT] 00000023 SystemOut O Value : Values : 0 /CaseTaskPortlet/view/CaseTaskPortlet/view/ScrollingAction.nextRecords 1 /CaseTaskPortlet/view/CaseTaskPortlet/view/TaskViewAction.navigateToApplica= tions [3/12/14 15:16:56:556 PDT] 00000023 SystemOut O Key : pagingBean.officeCode [3/12/14 15:16:56:556 PDT] 00000023 SystemOut O Value : Values : 0 CO *Thanks & Regards/ **=E0=A4=B8=E0=A4=BE=E0=A4=A6=E0=A4=B0**,* *Gaurav Daga* *togauravdaga@gmail.com | +1.201.308.3242 | Web Presence * Do not follow where the path may lead. Go instead where there is no path and leave a trail. - Harold R. McAlindon --047d7bdc18e69601cc04f4706ba9--