Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4072EE0B for ; Thu, 7 Mar 2013 11:47:22 +0000 (UTC) Received: (qmail 51168 invoked by uid 500); 7 Mar 2013 11:47:20 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 51135 invoked by uid 500); 7 Mar 2013 11:47:20 -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 51104 invoked by uid 99); 7 Mar 2013 11:47:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 11:47:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of motgupta@gmail.com designates 209.85.215.172 as permitted sender) Received: from [209.85.215.172] (HELO mail-ea0-f172.google.com) (209.85.215.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 11:47:12 +0000 Received: by mail-ea0-f172.google.com with SMTP id f13so1531384eaa.31 for ; Thu, 07 Mar 2013 03:46:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=6H7VjkeRSEyh2U6LkG67nE6F/+MaGh0fAT2mbAsXWrA=; b=JiexVSxIOkZiwAxwvavd04+wNpFNNhfgT5Uph24urWEgFr7v+KZn0Saqm4SgVKj984 ydm9/KAU1Rie89+iVMjkPwKUaAqB6kUFDpx6FZEYVGOMyznk+KSpEF+yOk5tpm+5vO5Y Kw6qWIasSvf8Kgc8cZJjwP4rptotHpg73T0lN7MN/hWOUMct9c9SlPrJBIravMmBMUY0 URpGjhEeoRg2qp7JL9pLkE4gPWcJ1e0JyoTI6x9ZNsrz63VlJencvkx1I4YfHvvVmLM/ Gx3vQdOm4SCtjvMCj1VVaCjxSkjf7DNp5nA5WXhjlYiwFMEi9c4cR31UT/8KmFNJe6Dj Kdyg== MIME-Version: 1.0 X-Received: by 10.14.4.69 with SMTP id 45mr37086519eei.0.1362656812594; Thu, 07 Mar 2013 03:46:52 -0800 (PST) Received: by 10.15.24.130 with HTTP; Thu, 7 Mar 2013 03:46:52 -0800 (PST) Date: Thu, 7 Mar 2013 17:16:52 +0530 Message-ID: Subject: How to make struts 2 to pass the correct parameter value even if it has ampersand in between? From: Mohit Gupta To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=047d7b66f1c744283204d754431c X-Virus-Checked: Checked by ClamAV on apache.org --047d7b66f1c744283204d754431c Content-Type: text/plain; charset=ISO-8859-1 i have struts 2 action which has following method public String viewCustomer() { return "ViewCustomer"; } Here is the result annotation which redirect to another legacy action customer/view-Customer!viewCustomer.action?uid=10599&firstName=scott&lastName=Miles @Result(name = "ViewCustomer", location = "/Customer.do?customerId=1¶ToRetain=%{#parameters.paraToRetain}" , type = "redirect"), The issue is with parameter paraToRetain. paraToRetain value is CustomerAddress.do?fisrtName=scott&lastName=Miles But in action CustomerAddressAction i get the value of paraToRetain as CustomerAddress.do?fisrtName=scott not complete value i.e CustomerAddress.do?fisrtName=scott&lastName=Miles. So basically it does not pass the parameter correct value if it has ampersand somewhere in the value. How can i make struts 2 to pass the correct parameter value even if it has ampersand in between? --047d7b66f1c744283204d754431c--