Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 8048 invoked from network); 1 Aug 2006 15:52:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 15:52:49 -0000 Received: (qmail 2611 invoked by uid 500); 1 Aug 2006 15:52:39 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 2586 invoked by uid 500); 1 Aug 2006 15:52:39 -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 2575 invoked by uid 99); 1 Aug 2006 15:52:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 08:52:39 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of niall.pemberton@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 08:52:38 -0700 Received: by nf-out-0910.google.com with SMTP id a4so30660nfc for ; Tue, 01 Aug 2006 08:52:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oTTQ730BiyZD56satZDKq7TUs44ywNjoMIOXiT08YVpnCQ5YUqW1HVboefwE6LgbyvnokGBEloCWhGCf11pHz9Vs31mJRUrol03oH+KivXk9CL8SX2J/HU9jQ2o4P9WfzLxaUaR+FT/epOcAP0g0BklAdIFx8GTI3uly8K+A23c= Received: by 10.78.165.13 with SMTP id n13mr337548hue; Tue, 01 Aug 2006 08:52:15 -0700 (PDT) Received: by 10.78.143.16 with HTTP; Tue, 1 Aug 2006 08:52:15 -0700 (PDT) Message-ID: <55afdc850608010852u50d85b67x616123866244158b@mail.gmail.com> Date: Tue, 1 Aug 2006 16:52:15 +0100 From: "Niall Pemberton" To: "Struts Users Mailing List" Subject: Re: taglib for locale-dependent logic to images? In-Reply-To: <44CF3D11.4060007@eurodyn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44CF3D11.4060007@eurodyn.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 8/1/06, Emmanouil Batsis wrote: > > Suppose i have an images folder in my webapp with subfolders > corresponding to locales: > > + WEB-INF > + jsps > + images > + default > + myImage.png > + fr > + myImage.png > + el > + myImage.png > > i'd like to do something like > > > > to render the image whose parent folder matches the user's locale if > that folder does have a file named "myImage.png" or to try and get the > image from the default locale/folder otherwise. > > Is there any taglib like that available anywhere? You can do this with the current tag - use either the "pageKey" or "srcKey" attributes: http://struts.apache.org/1.2.x/userGuide/struts-html.html#img Niall > Thanks in advance, > > Manos --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org