Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DA7F3200BC1 for ; Wed, 16 Nov 2016 12:12:39 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D487C160B08; Wed, 16 Nov 2016 11:12:39 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2827F160B03 for ; Wed, 16 Nov 2016 12:12:39 +0100 (CET) Received: (qmail 54494 invoked by uid 500); 16 Nov 2016 11:12:38 -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 54478 invoked by uid 99); 16 Nov 2016 11:12:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2016 11:12:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8F3D8182912 for ; Wed, 16 Nov 2016 11:12:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.629 X-Spam-Level: ** X-Spam-Status: No, score=2.629 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4Obx88OIg_1g for ; Wed, 16 Nov 2016 11:12:34 +0000 (UTC) Received: from mail-yw0-f180.google.com (mail-yw0-f180.google.com [209.85.161.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 73CDC5FAE7 for ; Wed, 16 Nov 2016 11:12:34 +0000 (UTC) Received: by mail-yw0-f180.google.com with SMTP id r204so121545814ywb.0 for ; Wed, 16 Nov 2016 03:12:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=0MAcGtFxn+rknQZI9kwOgwoHyg8CKEo/rrajX7b8L10=; b=OTRV7g0/xqENTS81bIofa/jVgQIu0HfhMYDHfFcnl+oU1c069e/9Jz8LARYbEktZsr 75r/CrzhdrlIH07FXxeujwUFyS61dSvmu3oOvs78h1y8MAjw3kOCkSGstNDMGcUd4Roh flv363hMPiFfYTURReu7NpRXnZqMmIgqm7UzsEzzrz5+anmm88aiDWWDOSyNqVwTPYEC zsbZR/fALfCY0hiBLju0uMR2r/1M9Q1VtPn+rEH3DOXVrFPQOu4FHtAJEJkn+aZ8eA1y TkfQL8TAKeBrFN4psZ3u3yPEV346+beM+R2Jtu/mLcMiqK00H40lpRqp3Ahjhu/uphwu Kbcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0MAcGtFxn+rknQZI9kwOgwoHyg8CKEo/rrajX7b8L10=; b=eAdYodKtP5IxfpBLSzDdAh3l41LPP2PiWnX7IAkx7MgWg0C6wer+EY80zoysttXFxs H/TvR73RLT11Y8SQmbTIyRbwYJwjIlNipaiCiXIpm9xsYHPnYOyr6Dz348pZOd+RSwgc yVCBYIv2qAszN3gAWgx7Z3lAQ+FdgYeHeZF49s304OevG5WMjGC1Z98PtgUGdJN8uHCl UxB42nmNCdUN27iJH+WTyIV0p/+/+Az7jaQLgKlWrL7VCqi9MOyZRcmIUwce89VnUptK MS2rD1OMEwdOWuvsf2geSrJVUTsD4dPzgGpW5Ae3xf63+DxO/0EJFmkp/qKozT0blL4n SwBA== X-Gm-Message-State: ABUngvdwN+pP6grqXCKxwZcxZqGDFNBNFBu2brF48gxXYwFqOZyyinJPPXwJWgtTGEg+QsAAfF+fiomYZajlXw== X-Received: by 10.129.85.9 with SMTP id j9mr1815773ywb.283.1479294753852; Wed, 16 Nov 2016 03:12:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.156.72 with HTTP; Wed, 16 Nov 2016 03:12:33 -0800 (PST) In-Reply-To: References: <1909aee2-e71c-c205-5608-8369917a0c9d@apache.org> From: Greg Huber Date: Wed, 16 Nov 2016 11:12:33 +0000 Message-ID: Subject: Re: Referencing request parameters in struts tags. To: Struts Developers List Content-Type: multipart/alternative; boundary=001a113f16d65256780541692636 archived-at: Wed, 16 Nov 2016 11:12:40 -0000 --001a113f16d65256780541692636 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yep it works. It matches the escaping default also. I will do some more testing also. @override public String toString() { return StringEscapeUtils.escapeHtml4(getValue()); } On 16 November 2016 at 10:58, Lukasz Lenart wrote= : > 2016-11-16 11:53 GMT+01:00 Greg Huber : > > Sounds like a good idea and plug the whole lot in one go. > > > > tomcat 8 is JSP 2.3 and EL 3.0. > > > > > > ###### > > > > checking ${parameters.get('error')} > > > > uses org.apache.struts2.dispatcher.Parameter. If I debug the class it > is. > > toStringArray() does the conversion to the string, maybe escape here? > > > > strValues[i] =3D StringEscapeUtils.escapeHtml4(String.valueOf(v)); > > I think it's because of toString() implementation but this should be > ok to escape in toString(), let me check that. > > > Regards > -- > =C5=81ukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > > --001a113f16d65256780541692636--