RE: Stupid Bean tricks

2003-12-07 Thread Joe Hertz
] Subject: Re: Stupid Bean tricks Assuming your User object is stored in the request under the key user, the language you want is en (English), and the UserData property you want is message, you would do: bean:message name=user property=en.message/ -- Martin Cooper Joe Hertz [EMAIL

Re: Stupid Bean tricks

2003-12-07 Thread Martin Gainty
: Stupid Bean tricks Martin- Can you point me to the correct docs for how this works? I don't find anything regarding using maps within beans this way. Tx -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Cooper Sent: Friday, December 05, 2003 3:58

Maps within Beans (was Stupid Bean Tricks)

2003-12-07 Thread Joe Hertz
Users Mailing List; [EMAIL PROTECTED] Subject: Re: Stupid Bean tricks a complete example on how to use this concept is located at http://www.orionserver.com/tutorials/taglibs/8.html viel Glueck, Martin - Original Message - From: Joe Hertz [EMAIL PROTECTED] To: 'Struts Users

Stupid Bean tricks

2003-12-05 Thread Joe Hertz
Probably a very basic question, and infinitely dealableI hope. I have a User object, which itself contains a Set of UserData objects (the UserData is stuff that needs to be multilingual. Each instance has the part of the user's data that would vary when presented in each language). So, in my

Re: Stupid Bean tricks

2003-12-05 Thread Martin Cooper
Why not convert your Set into a Map keyed by language / locale? Then get(locale) is effectively provided for you. -- Martin Cooper Joe Hertz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Probably a very basic question, and infinitely dealableI hope. I have a User object,

RE: Stupid Bean tricks

2003-12-05 Thread Joe Hertz
] Subject: Re: Stupid Bean tricks Why not convert your Set into a Map keyed by language / locale? Then get(locale) is effectively provided for you. -- Martin Cooper Joe Hertz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] oss.local... Probably a very basic question

Re: Stupid Bean tricks

2003-12-05 Thread Martin Cooper
PROTECTED] Subject: Re: Stupid Bean tricks Why not convert your Set into a Map keyed by language / locale? Then get(locale) is effectively provided for you. -- Martin Cooper Joe Hertz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] oss.local... Probably a very