Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 26527 invoked from network); 11 Aug 2005 15:02:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2005 15:02:20 -0000 Received: (qmail 59706 invoked by uid 500); 11 Aug 2005 15:02:08 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 59694 invoked by uid 500); 11 Aug 2005 15:02:08 -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 59678 invoked by uid 99); 11 Aug 2005 15:02:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 08:02:08 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.25.134.84] (HELO mailout09.sul.t-online.com) (194.25.134.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 08:02:29 -0700 Received: from fwd27.aul.t-online.de by mailout09.sul.t-online.com with smtp id 1E3EZH-0002bh-01; Thu, 11 Aug 2005 17:02:03 +0200 Received: from albi (rCknhEZJ8e9WjhWTlMFLXA43wj+Xe1r9xrbpsD+pu67f0OMY8Q9l4O@[84.156.112.175]) by fwd27.sul.t-online.de with esmtp id 1E3EZ2-0bp3560; Thu, 11 Aug 2005 17:01:48 +0200 Reply-To: From: "Albrecht Leiprecht" To: "'Struts Users Mailing List'" Subject: RE: Conditionally show values in Tile (c:when?) Date: Thu, 11 Aug 2005 17:04:25 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 thread-index: AcWeg0//KR4EXg5+Q12Qx2Qzo81jYQAAfO0A In-Reply-To: <42FB64CD.6090709@uni.edu> Message-ID: <1E3EZ2-0bp3560@fwd27.sul.t-online.de> X-ID: rCknhEZJ8e9WjhWTlMFLXA43wj+Xe1r9xrbpsD+pu67f0OMY8Q9l4O X-TOI-MSGID: a5fc33c8-3092-4983-bc16-99245cc30404 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N No matter if I set it pageContext.setAttribute("errmsglength", new Integer(errmsglength)); or like this <%=errmsglength%> No dots, nada. I will create a fresh project that simulates the current situation and see if it shows the same behavior... That might allow me to track down the problem. At least, I learned that EL is somewhat picky about what it sees and what not ;) Thanks anyway guys... I'll post again, if/when I found the reason for this Rgds albi -----Original Message----- From: Troy Bull [mailto:troy.bull@uni.edu] Sent: Thursday, August 11, 2005 4:47 PM To: Struts Users Mailing List Subject: Re: Conditionally show values in Tile (c:when?) Greg Reddin wrote: > On Aug 11, 2005, at 9:30 AM, Albrecht Leiprecht wrote: > >> Just did the following: >> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> >> >> <% >> int errmsglength = 5; >> %> >> >> >> Further down: >> >> ... >> >> One would expect to see the 3 dots ... but nada ... >> And yes ...the taglib is loaded in the first line of the file ...Funky >> ...isn't it ? > > > Again, I think you're trying to access something in EL that it doesn't > know about. EL doesn't (in my understanding) automatically obtain > scriptlet variables. You'd have to put errmsglength in PageContext so > EL can find it. Try this: > > <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> > > <% > int errmsglength = 5; > pageContext.setAttribute("errmsglength", new Integer(errmsglength)); > %> > > ... > > > Greg or you can do something like: <%=variable%> you need to put appropriate attributes on the c:set tag of course. troy -- The best way to get convenient parking at Berkeley is to win a Nobel Prize. All winners are given a reserved spot on central campus. -- Ken --------------------------------------------------------------------- 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