Re: & internationalization

2003-10-27 Thread Jason Lea
Normally I have an action that prepares data that initialises the form with default information. This action will get the information from the message resources (using the chosen locale), puts them into a LabelValueBean and put those beans into a List. Then that List is put into the ActionFor

Re: Internationalization on a larger scale.

2003-07-02 Thread Vic Cekvenich
There is a DB driven resource bundle on struts.sf.net. Sebastien Flacher wrote: Hi Linus, As a single textfile is used, when there are several thousand entries it will become difficult to manage. this link has details on Resource Bundles inheritance http://developer.java.sun.com/develope

RE: Internationalization on a larger scale.

2003-07-02 Thread James Childers
> I'm pretty new to Struts usage so it might be i'm overlooking > an obvious solution to this. The thing I've been looking at > Internationalization issues concerned with Struts. The thought > of being able to change the whole language of a site simply by > changing the locale of the user real

Re: Internationalization on a larger scale.

2003-07-02 Thread Sebastien Flacher
Hi Linus, > As a single textfile is used, when there are several thousand entries it > will become difficult to manage. this link has details on Resource Bundles inheritance http://developer.java.sun.com/developer/technicalArticles/Intl/ResourceBundles/ So far I find the Struts framework pretty

Re: Internationalization support

2003-06-06 Thread Vic Cekvenich
A good idea is to use JSTL fmt tag. Set the default in web.xml context parm. Ex: set locale HR Ex: use locale Zelim Sretno! btw: my 2nd Struts book will be transalted to Croatian among others, and covers localization, etc. Alen Ribic wrote: Hi all What is the best way to han

Re: internationalization

2003-03-24 Thread James Mitchell
On Mon, 2003-03-24 at 20:03, Vikas Malla wrote: > > I do not know how I can localize my jsp/html user manual? Couple of questions > regarding that: > > 1) Do I creat separate folders for each locale and then translate the help text into > each language and store them in folders? > 2) Do I ment

Re: Internationalization of string with embedded link?

2003-03-22 Thread Dolf Starreveld
In a mail from 13:44 +1200 3/23/03 Jason Lea wrote: Dolf pointed out this doesn't solve the problem due to the use of the on his jsp page. After looking around I have learnt something new :) and have found a solution (using Java Servlet 2.3 and JavaServer Pages 1.2 eg Tomcat 4+.) You can use

Re: Internationalization of string with embedded link?

2003-03-22 Thread Jason Lea
Dolf pointed out this doesn't solve the problem due to the use of the on his jsp page. After looking around I have learnt something new :) and have found a solution (using Java Servlet 2.3 and JavaServer Pages 1.2 eg Tomcat 4+.) You can use the JSTL & Struts-EL (expression language)... You c

Re: Internationalization of string with embedded link?

2003-03-22 Thread Jason Lea
This can be done in Struts using the MessageResources: Struts Tip #4 - Formatting output with MessageResources http://husted.com/struts/tips/004.html also have a look at the Java Internationalization Tutorial's page http://java.sun.com/docs/books/tutorial/i18n/format/messageFormat.html You can use

Re: Internationalization of string with embedded link?

2003-03-22 Thread David M. Karr
> "Dolf" == Dolf Starreveld <[EMAIL PROTECTED]> writes: Dolf> On a struts based JSP is need to output something like: Dolf> To do x, click Dolf> means that words needs to be a link. Without using resource (and Dolf> internationalization), it would look like: Dolf> To do

RE: internationalization

2003-03-21 Thread Jason Lea
guage, country & variant so that I can store/read easily as a user preference eg default is 3 empty strings separated by '_' = '___', others would be 'fr__', 'ja__', 'en_US_' Jason Lea -----

RE: internationalization

2003-03-21 Thread COMPAGNON GUILLAUME
MessageResource works like the java.util.ResourceBundle if no properties file for italian exits (applicationResources_it.properties for example), it takes the default one (applicationResources.properties) no exception, just a default case... otherwise, if no default file exists ... you will have

Re: Internationalization of checkbox label

2002-12-04 Thread David Graham
You don't; you use it where you're using right now. David From: "Jana Navaneethan" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: Inter

Re: Internationalization of checkbox label

2002-12-04 Thread Jana Navaneethan
How do I use in my ActionForm ? Thanks, Jana. - Original Message - From: "David Graham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 04, 2002 4:11 PM Subject: Re: Internationalization of checkbox label > Your items array should con

Re: Internationalization of checkbox label

2002-12-04 Thread David Graham
Your items array should contain keys in your message resources. Then use the or tag to output the key's value. David From: "Jana Navaneethan" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Interna

Re: Internationalization - user setting the language manually?

2002-10-25 Thread David Graham
I posted a tag that lets users select a different language on bugzilla a while back. You could look at that and see if it helps. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12648 David From: <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: <[EMAIL PROT

Re: Internationalization - user setting the language manually?

2002-10-25 Thread Tumi Mathibedi
hi Stefan, if (request.getLocale() == null) { yada yada yada... } In short what I am saying is that u can have a logic to help solve the browserNotSetLocale to do what you want. On Fri 25 Oct 02 13:33, you wrote: > Hi there! > > I find the internationalisation feature of struts real nice, but

RE: Internationalization - user setting the language manually?

2002-10-25 Thread Stefan.Landro
Thanks to both of you. This is exactly what I needed to know. Stef. -Original Message- From: James Mitchell [mailto:jmitchtx@;telocity.com] Sent: Freitag, 25. Oktober 2002 14:11 To: Struts Users Mailing List Subject: RE: Internationalization - user setting the language manually

RE: Internationalization - user setting the language manually?

2002-10-25 Thread James Mitchell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:Stefan.Landro@;swisscom.com] > Sent: Friday, October 25, 2002 7:34 AM > To: [EMAIL PROTECTED] > Subject: Internationalization - user setting the language manually? > > > Hi there! > > I find the internationalisation feature of struts re

Re: Internationalization - user setting the language manually?

2002-10-25 Thread Gemes Tibor
2002. október 25. 13:33 dátummal [EMAIL PROTECTED] ezt írtad: > Hi there! > > I find the internationalisation feature of struts real nice, but there > is something that is bothering me. What if a browser doesn't have a > language setting, or if the user wants to change to a particular > language ju

Re: Internationalization Broken on Struts 1.1b2?

2002-09-29 Thread Craig R. McClanahan
On Fri, 27 Sep 2002, Ryan Cuprak wrote: > Date: Fri, 27 Sep 2002 16:54:26 -0400 > From: Ryan Cuprak <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Re: Internatio

RE: Internationalization Broken on Struts 1.1b2?

2002-09-27 Thread Charles McClain
Ryan: No, I don't think internationalization is broken -- I've tested it in my app under 1.12b. Do you have a tag like. .in your JSP? -Original Message- From: Ryan Cuprak [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 2:53 PM To: Struts Users Mailing List Subjec

Re: Internationalization Broken on Struts 1.1b2?

2002-09-27 Thread David Graham
I don't even use the tag and i18n works for me. I don't think it's a requirement. Dave >From: Ryan Cuprak <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROT

Re: Internationalization

2002-09-27 Thread David Graham
List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >Subject: Re: Internationalization >Date: Fri, 27 Sep 2002 13:18:12 -0400 > >Looking through the startup logs of jboss (and my webapp with struts), I >noticed that only "

Re: Internationalization Broken on Struts 1.1b2?

2002-09-27 Thread Ryan Cuprak
Okay, I figured it out, one has to add the following to their jsp page: Why would I have to do this? -Thanks, Ryan Cuprak On Friday, September 27, 2002, at 02:53 PM, Ryan Cuprak wrote: > > With respect to Struts 1.1b2, is internationalization broken? I can't > get struts to send back an

Re: Internationalization Broken on Struts 1.1b2?

2002-09-27 Thread David Graham
It works for me. Struts will initially return the file associated with your browsers Accept-Language parameter. To change the language after that you have to set the Action.LANGUAGE_KEY session attribute. Dave >From: Ryan Cuprak <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[E

Re: Internationalization

2002-09-27 Thread Ryan Cuprak
inded Developer Network" >> http://www.open-tools.org/struts-atlanta >> >> >> >> >>> -Original Message- >>> From: James Mitchell [mailto:[EMAIL PROTECTED]] >>> Sent: Friday, September 27, 2002 10:47 AM >>> To: Struts

RE: Internationalization

2002-09-27 Thread James Mitchell
Struts-Atlanta, the "Open Minded Developer Network" http://www.open-tools.org/struts-atlanta > -Original Message- > From: Ryan Cuprak [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 27, 2002 11:08 AM > To: Struts Users Mailing List > Subject: Re: Internationaliz

Re: Internationalization

2002-09-27 Thread Ryan Cuprak
> > >> -Original Message- >> From: James Mitchell [mailto:[EMAIL PROTECTED]] >> Sent: Friday, September 27, 2002 10:47 AM >> To: Struts Users Mailing List >> Subject: RE: Internationalization >> >> >> Not sure why your browser is sendi

RE: Internationalization

2002-09-27 Thread James Mitchell
-Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 27, 2002 10:47 AM > To: Struts Users Mailing List > Subject: RE: Internationalization > > > Not sure why your browser is sending "deu" in Accept-Language, but you ca

Re: Internationalization

2002-09-27 Thread David Graham
uot; <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >Subject: Re: Internationalization >Date: Fri, 27 Sep 2002 10:25:02 -0400 > > > I haven't tried the Action.LOCALE_KEY yet, but restarting the server and >browser as well

RE: Internationalization

2002-09-27 Thread James Mitchell
AM > To: Struts Users Mailing List > Subject: Re: Internationalization > > > > I haven't tried the Action.LOCALE_KEY yet, but restarting the server > and browser as well as dumping the cookies hasn't fixed it. > > Thanks, > -Ryans > > On Friday, Septembe

Re: Internationalization

2002-09-27 Thread Ryan Cuprak
I haven't tried the Action.LOCALE_KEY yet, but restarting the server and browser as well as dumping the cookies hasn't fixed it. Thanks, -Ryans On Friday, September 27, 2002, at 10:12 AM, David Graham wrote: > I had a problem like this and solved it by restarting the server and > browser.

Re: Internationalization

2002-09-27 Thread David Graham
I had a problem like this and solved it by restarting the server and browser. Struts only checks your browser locale when you first hit the page and then stores it in your session. To speed debugging you could manually set the locale code under the Action.LOCALE_KEY (i think) session attribut

Re: Internationalization question.

2002-09-12 Thread Cristian Cardenas
? Thanks a lot. Cristian. - Original Message - From: "Cristian Cardenas" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, September 12, 2002 10:10 AM Subject: Re: Internationalization question. > No, I have &

Re: Internationalization question.

2002-09-12 Thread Cristian Cardenas
No, I have in the Struts-config.xml. Any idea? Cristian - Original Message - From: "John Yu" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, September 11, 2002 10:21 PM Subject: Re: Internationalization q

Re: Internationalization question.

2002-09-11 Thread John Yu
Do you have in the struts-config.xml? At 07:25 am 12-09-2002, you wrote: >Hi all, >I'm using Struts 1.1b2 and Weblogic 6.1 SP 1. >I was testing internationalization and I found that the server always used >the default ApplicationResource. Then I checked the value of >Action.LOCALE_KEY and I re

Re: Internationalization

2002-05-09 Thread Micael Padraig Og mac Grene
The page is static. When you change the locale, it will have to refresh itself. So, you have already succeeded. If you are having a problem, this is not it. What is the problem you are having? At 01:41 PM 5/9/02 -0400, you wrote: >I am trying to integrate internationalization in my struts a

Re: Internationalization and

2002-04-19 Thread Chuck Cavaness
Although I'm not real found of this action, I would look at the org.apache.struts.actons.LookupDispatchAction. This is a pre-built action that can be used exactly for what you are trying to do. Chuck At 04:30 PM 4/19/2002 +0200, you wrote: >Hi, > >we are developing an application that uses the

RE: Internationalization and

2002-04-19 Thread James Mitchell
I can think of 4 ways I might approach this: 1. Have you thought about using different actions to determine which button was pushed? Example: Then you would execute whatever you needed in the individual action classes. *the only problem with this is that it draws your

RE: internationalization

2002-03-01 Thread Galbreath, Mark
Read Chapter 13 of Jason Hunter's "Java Servlet Programming, 2d. ed." Mark -Original Message- From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 4:10 AM After read URL http://www.anassina.com/struts/i18n/i18n.html, i have a question to internationalized an ap

Re: internationalization

2002-03-01 Thread @Basebeans.com
Subject: Re: internationalization From: "Damien Wavrant" <[EMAIL PROTECTED]> === It works fine !! Thank "LI, Chung-Yuen" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > It's in the FAQ. > > http://www.husted.com/struts/

Re: internationalization

2002-03-01 Thread LI, Chung-Yuen
It's in the FAQ. http://www.husted.com/struts/FAQ/view-i18n.htm - Original Message - From: "Struts Newsgroup" <@[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, 1 March 2002 5:10 PM Subject: internationalization > Subject: internationalization > From: "Damien Wavrant" <[EMAIL

Re: internationalization

2002-02-12 Thread Michael Baldwin
You are on the right track. 1. Ensure that MySQL supports using a unicode character set. You may need to define this at install time, that is how oracle works. 2. When request parameters come in, they are assumed to be ISO-8859 (or whatever your platform default is) and encoded from there to uni

Re: Internationalization issue

2002-01-31 Thread Rob Breeds
Yug I've just done this very thing with my Struts app which has to accept multiple languages and output multiple languages on same pages. I set my application server (WebSphere App Server v4.0.2 AE) encoding to be UTF-8 for all languages (in WAS, you set 'client.encoding.override' to 'UTF-8@ in

RE: internationalization numeric formats

2001-12-18 Thread ltorrence
This is great for . How do you handle this for tags? -Original Message- From: Oleg V Alexeev [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 3:52 AM To: Struts Users Mailing List Subject: Re: internationalization numeric formats Hello Nathan, Monday, December 17, 2001, 8

Re: internationalization numeric formats

2001-12-18 Thread Oleg V Alexeev
Hello Nathan, Monday, December 17, 2001, 8:53:29 PM, you wrote: NC> Hi, NC> does struts support different formats for numbers dependent upon the locale NC> of the user? I've had a look in the bean write tag code which seems to NC> indicate using keys such as org.apache.struts.taglib.bean.forma

RE: Internationalization of codetables.

2001-08-15 Thread Adriano Labate
Hi, I use a special servlet that loads before the application. The servlet instanciate a singleton object that reads all the codes in three languages and store them in a map of value objects. This singleton object then provides all methods to get the appropriate code value depending of the code

Re: Internationalization of codetables.

2001-08-15 Thread Gregor Rayman
"Juraj Kazda" <[EMAIL PROTECTED]> wrote: > Because code tables are almost (or long-time lasting) static > data, I was thinking about putting a Vector of beans with attributes > corresponding/matching the structure of code table. That means to make > one start-up servlet which will fill all the V

Re: Internationalization

2001-06-26 Thread Michelle Popovits
Hi Vinay, I have recently been learning about the internationalization myself and so far I have found 2 ways to change the locale: 1. Change the language setting in your browser and the struts framework will automatically pick this up. 2. Manually set the local in the user's session once you ha

Re: Internationalization

2001-06-26 Thread Peter Alfors
The ActionServlet class stores the users locale (retrieved from the browser) during the first request. (see ProcessLocale() method) It is stored in the user's session under the key: Action.LOCALE_KEY <-- member variable of Action class. Therefore, to change the locale, you need to change the val

RE: Internationalization

2001-06-26 Thread Andrew Paul Swift
Not sure if this is what you want, but I changed the locale using my web browser. if using IE it is tools>internet options>languages n.b. you may need to stop and start IE for the change to be noticed. cheers Andy > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTE

RE: Internationalization (I18N) query

2001-06-15 Thread Jon.Ridgway
Hi Sandeep, It sounds like you wish to create profiles for each user. You can not use the struts message classes (as they stand) to achieve this, as users share the .properties file for each locale. You could get a default value from the properties file in a specific locale, but override it if

Re: Internationalization (I18N) query

2001-06-14 Thread Oleg V Alexeev
Hello Sandeep, Explain your question, please. What field name do you use? Is it label in JSP or database fieldname? Place more info here to get good answer. Thursday, June 14, 2001, 8:18:11 AM, you wrote: SYPlc> Hi All, SYPlc> This is a typical requirement about the internationalization. S