Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 43004 invoked from network); 19 Aug 2000 16:17:12 -0000 Received: from sm2.texas.rr.com (HELO Mail.austin.rr.com) (24.93.35.55) by locus.apache.org with SMTP; 19 Aug 2000 16:17:12 -0000 Received: from localhost ([24.162.104.27]) by Mail.austin.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Sat, 19 Aug 2000 11:15:23 -0500 To: cocoon-users@xml.apache.org Subject: Re: taglibs & java data types Date: Sat, 19 Aug 2000 11:17:11 -0500 From: Mike Engelhart reply-to: mengelhart@earthtrip.com x-mailer: Apple Mail (2.317) Message-ID: <0f06b2315161380SM2@Mail.austin.rr.com> X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N > Can you pass data types around using a taglib? I am trying to write a simple taglib that > takes a String and a Locale and return the value using ResourceBundle.getString() to > return the localized string. > > The only examples i see are just passing strings around. I realize that a Locale is > basically just a string anyway so I could convert it from a Locale -> String -> Locale but > that seems like extra work. Any help would be appreciated. Here's the taglib snippet and > the calling snippet: > Never mind this particular example. I forget that the taglib has access to the request variable so I can say request.getLocale() from within my taglib.