Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 47748 invoked from network); 11 Nov 2004 01:21:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Nov 2004 01:21:21 -0000 Received: (qmail 16890 invoked by uid 500); 11 Nov 2004 01:20:34 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 16762 invoked by uid 500); 11 Nov 2004 01:20:33 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 16702 invoked by uid 99); 11 Nov 2004 01:20:32 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of pengtuck@bluebottle.com designates 67.107.78.248 as permitted sender) Received: from [67.107.78.248] (HELO bluebottle-fe4.bluebottle.com) (67.107.78.248) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 10 Nov 2004 17:20:29 -0800 Received: from [10.0.20.4] ([219.94.82.113]) (pengtuck@bluebottle.com, authenticated bits=0) by bluebottle-fe4.bluebottle.com (8.12.11/8.12.11) with ESMTP id iAB1KAD3024291 for ; Wed, 10 Nov 2004 19:20:23 -0600 Message-ID: <4192BE4A.30807@bluebottle.com> Date: Thu, 11 Nov 2004 09:20:10 +0800 From: Peng Tuck User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: vs. onclick result References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Lori, If pathParam is a bean you pass in through the request or any scope you could use to output the value of the bean without resorting to scriplets. Ben Anderson wrote: >Lori, >notice I took this to the struts list. The struts tags don't support >runtime expressions. There is a subset of struts tags that supports >EL (expression language). You might try the following approach: > > > > >However, it'd be even better if you didn't need the first line. There >are times when scriplet expressions must be used (static variables), >but you should try to avoid them when you can. > >-Ben > >On Wed, 10 Nov 2004 11:10:48 -0800, Cook, Lori A wrote: > > >>I am experiencing difficulty using tag libraries and the passing through >>of scripting variables in attributes. Specifically I'm trying to add an >>onclick value to an tag but this is generic for any tag in >>the Struts libraries where the user can supply a value to an attribute. >> >>When the following markup is used in a jsp: >> >> >pathParam + ");\"" %> /> >>The resulting HTML is: >> >> >> >>As you can see either one of the jsp versions 'work' to create a good >>onclick method. >> >>But when the code is changed to use the tag it doesn't work. >>That is with the following jsp markup: >> >> >pathParam + ");\"" %> /> >>The resulting HTML is: >> >> >> >>While the first instance of gets changed into the >>markup the scripting variable pathParam does not get resolved. In the >>second case the scripting variable gets resolved but the does >>not get changed into its appropriate . >> >>Why? And how do you get the correct behavior? >> >>Any help is greatly appreciated. >>Lori Cook >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: taglibs-user-help@jakarta.apache.org >> >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >For additional commands, e-mail: user-help@struts.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org