Sorry, Bryan, here's the rest:


  protected String convertToUTF8(String original) {
    try {
      byte[] utf8Bytes = original.getBytes("UTF8);
      original = new String(utf8Bytes,"UTF8");
    } catch (UnsupportedEncodingException uee) {
      // logging, etc.
    }
    return original;
  }

Jack


On Wed, 15 Dec 2004 10:59:37 +0100, bryan <[EMAIL PROTECTED]> wrote:
> If I were to speculate which would be more usefull to the community,
> implementing something basic like this or creating support for JSF I
> would imagine that this would
> probably be more useful.
> 
> This reminds me of my skateboarding days, before learning how to do a
> 360 fakie kickflip it's kinda usefull to learn how to do an ollie ....
> 
> Thanks Niall.
> 
> --b
> 
> On Wed, 15 Dec 2004 00:24:11 -0000, Niall Pemberton
> <[EMAIL PROTECTED]> wrote:
> > It has come up before:
> >
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=9748
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=17600
> >
> > but it hasn't been implemented in Struts
> >
> > Niall
> >
> > ----- Original Message -----
> > From: "bryan" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 14, 2004 8:10 PM
> > Subject: Localize a dropdown select list
> >
> > > Is this possible with struts ?  i don't find a mention of it but can't
> > > imagine it hasn't been implemented.
> > >
> > > For example in the jsp
> > >
> > >  <html-el:select property="swimmingPool">
> > >            <html-el:optionsCollection  property="swimmingPoolOptions"
> > > value="name" label="name"/>
> > >         </html-el:select>
> > >
> > > Which generates the following ...
> > >     <select name="swimmingPool"><option value="type.yes">type.yes</option>
> > > <option value="type.no">type.no</option>
> > > <option value="type.option_to_build">type.option_to_build</option>
> > > <option value="type.undefined">type.undefined</option></select>
> > >
> > > Is it possible to map type.no to a value in the resource bundles ??
> > >
> > > --b
> > >
> > > --
> > > http://www.revoltingdigits.com
> > > https://jestate.dev.java.net
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> http://www.revoltingdigits.com
> https://jestate.dev.java.net
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to