Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 64367 invoked from network); 20 Jul 2010 19:20:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jul 2010 19:20:56 -0000 Received: (qmail 73615 invoked by uid 500); 20 Jul 2010 19:20:54 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 73425 invoked by uid 500); 20 Jul 2010 19:20:53 -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 73417 invoked by uid 99); 20 Jul 2010 19:20:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 19:20:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [132.205.96.94] (HELO oldperseverance.encs.concordia.ca) (132.205.96.94) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 19:20:44 +0000 Received: from cacao.encs.concordia.ca (emilu@cacao.encs.concordia.ca [132.205.47.225]) by oldperseverance.encs.concordia.ca (envelope-from emilu@encs.concordia.ca) (8.13.7/8.13.7) with ESMTP id o6KJKJP7023224; Tue, 20 Jul 2010 15:20:20 -0400 Message-ID: <4C45F6F3.7060300@encs.concordia.ca> Date: Tue, 20 Jul 2010 15:20:19 -0400 From: Emi Lu Reply-To: emilu@encs.concordia.ca User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Struts Users Mailing List CC: Dale Newfield , elephantium@gmail.com Subject: Re: lost URL parameters with tag References: <4C45C560.5070707@encs.concordia.ca> <4C45DF4E.30706@Newfield.org> In-Reply-To: <4C45DF4E.30706@Newfield.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on oldperseverance.encs.concordia.ca at 2010/07/20 15:20:20 EDT X-Virus-Checked: Checked by ClamAV on apache.org On 07/20/2010 01:39 PM, Dale Newfield wrote: > On 7/20/10 11:48 AM, Emi Lu wrote: >> It seems that "s:param" does not work well when more than one s:param is >> assigned. > > I use multiple param tags inside url tags all over the place. It does > work. I would suggest running your application inside a debugger to find > out what exactly is not working for you. One thing I would suggest is > eliminating ambiguities -- value fields (for example) are going to be > interpreted as OGNL, so if you want the ognl expression contents, then > value="%{contents}" and if you want the string contents, then > value="%{'contents'}". Thank you for all your inputs! Conclusion: ================= (1) workable version: (2) this way, it does not work: Frankly, I do *not* like way(1) since "%{getText('example2')}" is a very long paragraph. I prefer to transfer key property and retrieve text in Action Class. Anyhow, it seems that this is the current solution I could find for now. If you have better ideas, please let me know. Thanks a lot! -- Lu Ying Note: attribute.property ===================== example1=Title info example2=...... a very long paragraph ... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org