they will be
(B displayed.
(B
(BYep. The example app was written as a good example for i18n, so it does
(Bnot contain any language specific characters directly in the JSPs to
(Bshare a JSP with many languages.
(BThe messages resource files contain them.
(B
(B
(B You should look into that http
]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: i18n with Japanese characters and tags
Date: Tue, 23 Mar 2004 16:12:20 +0900
Carlo,
Have you checked the example application included in Struts1.1(or
current CVS)? It can show
He was saying it 'can' display Japanese characters. The example doesn't
have any Japanese characters in in (if i remember correctly), but if
they are put into the properties files for the locale they will be
displayed.
You should look into that http://www.anassina.com/struts/i18n/i18n.html
page
PROTECTED]
Subject: Re: i18n with Japanese characters and tags
Date: Thu, 25 Mar 2004 09:39:40 +1200
He was saying it 'can' display Japanese characters. The example doesn't
have any Japanese characters in in (if i remember correctly), but if
they are put into the properties files for the locale
Hello,
I'm trying to show Japanese characters on my jsp pages however the
character of the charset is coming back as amp; which is preventing the
characters from being displayed correctly. They look like:
#12461;#12459;#12473;#12495;
Note, the bean:write tag renders the characters correctly
AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: i18n with Japanese characters and tags
Hello,
I'm trying to show Japanese characters on my jsp pages however the
character of the charset is coming back as amp; which is preventing the
characters
thanks for the message Ram,
I did try that and it had no noticable effect.
From: Kumar, Ram S [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: i18n with Japanese characters and tags
Date: Tue, 23 Mar 2004 00
resource files.
Don't forget native2ascii when you make your resource files.
see also : http://www.anassina.com/struts/i18n/i18n.html
Yoshinori Ashizawa
Ja-Jakarta Project www.jajakarta.org
carlo latasa [EMAIL PROTECTED] wrote:
Hello,
I'm trying to show Japanese characters on my jsp
);
ServletContext ctx = getServlet().getServletContext();
ctx.setAttribute(Globals.MESSAGES_KEY, resources);
/snip
nameOfMessage should be the full pakage name of the
message resources.
Regards,
Vincent
--- Paul Stanton [EMAIL PROTECTED]
anyone written code to reload the contents
of their
i18n file (aka
anyone written code to reload the contents of their i18n file (aka
application.properties)? it seems a little stupid to be reloading web
applications because messages have been changed.
-
To unsubscribe, e-mail: [EMAIL
Suppose I have a string defined
in a definition, such as:
definition name=foo page=/myPage.jsp
put name=title value=Hello/
/definitions
How would I go about replacing Hello with
a reference to a string instead of the string itself?
Can this be done just using tiles-defs.xml, or is
it a two step
Use the MessageResources class.
I use struts:i18n ... tags in my application and it works
well. Now, i need to use Struts' internationnalization
functionalities
from an action (use case : I forward to a presentation framework and
do
not have acces to JSP, I can only use presentation
Title: Using struts I18N fonctionnalities from an action
Hi,
I use struts:i18n ... tags in my application and it works well. Now, i need to use Struts' internationnalization functionalities from an action (use case : I forward to a presentation framework and do not have acces to JSP, I can
just a thought. Most people use the Application Resource bundle to
handle internationalization issues, and it also works in action classes.
You may have multiple property files for each locale, with the
corresponding i18n labels.
Rgds,
Patrick
-Original Message-
From
Oops, I think I worded it incorrectly,
I mean, you can have separate property file for each locale you want.
-Original Message-
From: Patrick Cheng
Sent: Wednesday, January 21, 2004 10:28 AM
To: Struts Users Mailing List
Subject: RE: Using struts I18N fonctionnalities from
Hi all,
I know that Tiles support i18n by allowing multiple tiles definition
files with standard java language file extension such as _en_US , _fr
etc.
My Master Layout file contains other pages such as the navbars, body
etc. and the ONLY single piece of information it needs to show
Just use the title-value from the tiles definition as a key to access the
real value in the resource bundle :)
cheers,
Marinó
Patrick Cheng [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
I know that Tiles support i18n by allowing multiple tiles definition
files with standard
Marino A.
Jonsson An: [EMAIL PROTECTED]
[EMAIL PROTECTED]Kopie:
otmail.com Thema:Re: Tiles and i18n
I've defined a tile called title in a tile definition which is a language
dependend string. Therefore, I though I could set the key (webapp.title) of
the resource bundle as a value:
definition name=.mainLayout path=/layout/classicLayout.jsp
put name=title value=webapp.title /
put
]
Behalf Of Oliver Wulff
Sent: Tuesday, December 09, 2003 4:46 AM
To: [EMAIL PROTECTED]
Subject: I18N, Tiles definition
I've defined a tile called title in a tile definition which is a language
dependend string. Therefore, I though I could set the key (webapp.title) of
the resource bundle
Hello everybody:
How best is i18N taglib useful, along with struts 1.1
- Vara Prasad
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
meaning, do I need to use i18N tag lib at all, when using struts.
-Original Message-
From: Vara Prasad Reddy [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 6:39 PM
To: Struts Users Mailing List
Subject: i18N tag lib and struts
Hello everybody:
How best is i18N taglib useful
Greetins all,
As a newbie in struts, I am sure this is something simple. I have some
LookupDispatchActions setup and working fine. Now, I want to
internationalize this app. I created a second resource file ending in es_MX.
Ok, now what happens is when it does the lookup to find the method in my
to MySQL, it's not working properly.
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, October 20, 2003 12:09 AM
Subject: Re: i18n - Chinese charactor problem
What version of mySQL do you have? I believe that complete
[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:49 PM
Subject: Re: i18n - Chinese charactor problem
UTF-8
On 10/16/2003 07:25 PM ZYD wrote:
Now I use UTF-8 everywhere instead of gb2312, this problem is gone. Thanks for your help.
I have another problem, hope can get some advice from you:
I
Wich jdbc driver for mySQL are U using?
It works fine to me mysql-connector-java-3.0.8 for Greeks
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, October 19, 2003 7:09 PM
Subject: Re: i18n - Chinese charactor problem
When I write chinese charactor to MySQL, it's not working properly.
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, October 20, 2003 12:09 AM
Subject: Re: i18n - Chinese charactor problem
What version of mySQL do you
=truecharacterEncoding=UTF-8
Not works fine.
- Original Message -
From: Jim Theodoridis [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, October 20, 2003 12:27 AM
Subject: Re: i18n - Chinese charactor problem
Wich jdbc driver for mySQL are U using?
It works fine to me
: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, October 20, 2003 12:09 AM
Subject: Re: i18n - Chinese charactor problem
What version of mySQL do you have? I believe that complete unicode
support is only present in the latest perhaps even beta versions
No, UTF-8 does not work.
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:49 PM
Subject: Re: i18n - Chinese charactor problem
UTF-8
On 10/16/2003 07:25 PM ZYD wrote:
Now I use UTF-8 everywhere
:34 AM
Subject: Re: i18n - Chinese charactor problem
If you are using UTF-8 everywhere it should work - I use it for english
Japanese and it works.
You mentioned in another message you had this:
filter-classSetCharacterEncodingFilter/filter-class
init-param
param-nameencoding/param-name
param
Hi,
I have a problem in getting the Chinese charactors from html:text,
The following is my jsp file:
%@ page contentType=text/html;charset=UTF-8 language=java %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
html:html
html:form action=/submit focus=email
head/head
body
html:text
I don't remember the exact code, but a looong time ago we had to write a
Filter that created a request wrapper that properly set the character
encoding on request parameters. Maybe googling that would turn up
something.
Greg
ZYD wrote:
Hi,
I have a problem in getting the Chinese charactors
Here is a link that explains what is needed and a filter to do it...
http://www.anassina.com/struts/i18n/i18n.html
Greg Reddin wrote:
I don't remember the exact code, but a looong time ago we had to write
a Filter that created a request wrapper that properly set the
character encoding
: i18n - Chinese charactor problem
I don't remember the exact code, but a looong time ago we had to write a
Filter that created a request wrapper that properly set the character
encoding on request parameters. Maybe googling that would turn up
something.
Greg
ZYD wrote:
Hi,
I have
%
then the Chinese charactors are handled properly.
Why is that?
- Original Message -
From: Jason Lea [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 5:51 AM
Subject: Re: i18n - Chinese charactor problem
Here is a link that explains what is needed
contentType=text/html; charset=GBK %
then the Chinese charactors are handled properly.
Why is that?
- Original Message -
From: Jason Lea [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 5:51 AM
Subject: Re: i18n - Chinese charactor problem
=GB2312
use GB2312 in this string is not a good idea I think.
Then what should the characterEncoding be?
-bruce
- Original Message -
From: Jason Lea [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 11:34 AM
Subject: Re: i18n - Chinese
PROTECTED]
To: [EMAIL PROTECTED]
Cc:
I can successfully run the struts-example app provided with the STRUTS
install on Tomcat in English, however, I would like to be able to view the
i18n capabilities using the 'ja' and 'ru' .properties files.
I have added the 'ja' and 'ru' locales and removed
-example i18n
I can successfully run the struts-example app provided with the STRUTS
install on Tomcat in English, however, I would like to be able to view the
i18n capabilities using the 'ja' and 'ru' .properties files.
I have added the 'ja' and 'ru' locales and removed the 'en' locale
I can successfully run the struts-example app provided with the STRUTS
install on Tomcat in English, however, I would like to be able to view the
i18n capabilities using the 'ja' and 'ru' .properties files.
I have added the 'ja' and 'ru' locales and removed the 'en' locale by
configuring my
Kapadia Mitesh-C23457 would like to recall the message, Struts-example
i18n.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Dear Friends,
Could anyone suggests which is best among the
Struts tags and
JSTL tags
for I18n of struts based application.
Thanks,
Sivakumar
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
It's not necessarily a question of which is best, rather which has the
biggest future. In this respect you should use the JSTL fmt: taglib.
Adam
On 09/09/2003 08:18 AM Siva wrote:
Dear Friends,
Could anyone suggests which is best among the
Struts tags and
JSTL tags
for I18n of struts based
[mailto:[EMAIL PROTECTED]
Sent: 09 September 2003 09:27
To: Struts Users Mailing List
Subject: Re: i18n with struts / JSTL
It's not necessarily a question of which is best, rather which has the
biggest future. In this respect you should use the JSTL fmt: taglib.
Adam
On 09/09/2003 08:18 AM Siva
Bear in mind that there are bugs in the jstl code that aren't
in the struts
equivalents:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16932
That's just one implementation of JSTL.
The application server vendor's JSTL implementation
is not going to have (the same) bugs. Depending, of
I can successfully run the struts-example app provided with the STRUTS install on
Tomcat in English, however, I would like to be able to view the i18n capabilities
using the 'ja' and 'ru' .properties files.
I have added the 'ja' and 'ru' locales and removed the 'en' locale by configuring my
Thanks Yann
-Original Message-
From: Yann Cébron [mailto:[EMAIL PROTECTED]
Sent: 20 August 2003 19:19
To: [EMAIL PROTECTED]
Subject: [OT ]Re: jstl:fmt i18n weirdness
I'm experiencing werdness with localised fmt:message calls. It appears
that
This tag has nothing do to with Struts, so
I'm experiencing werdness with localised fmt:message calls. It appears that
the langauge of the first request to the context determines the langauage of
all future requests, even from other machines.
For example:
1) Tomcat restarted
2) Browser A requests a page in French - the page is displayed
I'm experiencing werdness with localised fmt:message calls. It appears
that
This tag has nothing do to with Struts, so please ask on the taglibs-user
mailing-list. I remember seeing a couple of messages regarding this problem,
so you might find an answer in the archives.
Yann
The standard i18n functionality is appropriate for allowing a user to
see i18nized dates, page titles, labels etc etc.
I'm not sure you can approach your problem that way, due to issues such
as having content in a properties file.
You could theoretically change from having the content
Hi;
I am displaying currency in my website. It is always in U.S. dollars so I am doing:
NumberFormat.getCurrencyInstance().format( (float) price / 100f );
Two questions:
1.. I assume I should set the locale for this to en_US since I want to have the
dollar sign.
2.. Should it do the
altKey=languagelogo.alt/
Just specifiy the relevant path text in your locale specific properties
files.
Paul
-Original Message-
From: Henry Voyer [mailto:[EMAIL PROTECTED]
Sent: 13 August 2003 22:58
To: [EMAIL PROTECTED]
Subject: Questions about i18n.
Hi fellow strutsers.
I have 2
Hi fellow strutsers.
I have 2 i18n question.
1) How can i i18n of huge amount of text ?
Ex. i have 2 texts one in french and one in englsh that i would like to
insert in an JSP
Ex comment_en.txt and comment_fr.txt
Do i have to put it in one .propertie line ?
2) How can we i18n images?
Ex. 2
To: [EMAIL PROTECTED]
Subject: sample struts w/ I18N and validator
Hi;
Does anyone know of a simple sample struts page (like logon) that
includes Internationalization and validators so it shows how to
use everything?
thanks - dave
For 2) you could simply have a text string which includes the img html tag.
You would then just put this in the properties file as normal and specify a
seperate image for each language file.
Toby.
On 08/13/2003 11:58 PM Henry Voyer wrote:
Hi fellow strutsers.
I have 2 i18n question.
1) How
struts-validator.war shipped with Struts distributive is a good example
covered both I18N and validators. You can take it from
http://forum.exadel.com/viewtopic.php?t=120 with illustration of
application Web Flow.
Regards,
Sergey Smirnov
David Thielen [EMAIL PROTECTED] wrote in message
news
accordingly. If I was
selling something, I'd be as accommodating as possible. 8-)
If you're using JSP for presentation, I recommend the JSTL i18n and
formatting tags instead of Java code.
david
thanks - dave
-
To unsubscribe, e
Aug 2003 09:24:24 +0100
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Hindi i18n Iscii Font
Try looking at icu4j it's a Open Source by IBM
http://oss.software.ibm.com/icu4j/
they have a cool api for doing internationalisation to any character set
Rupinder
Subject: Re: Hindi i18n Iscii Font
Hi Kiran,
You need to set the character encoding for the JSP page/response. Java
still thinks the response should be in the default encoding which is
ISO-8859-4 (I think that is the Latin character set).
I use UTF-8 encoding so that I can mix languages eg
Hi;
Does anyone know of a simple sample struts page (like logon) that includes
Internationalization and validators so it shows how to use everything?
thanks - dave
Hi,
I need some help on I18n in Hindi,I am using Struts 1.1 and need to
display fonts in hindi (we use iscii charsets which are 8 bit)...
if i give the hindi value directly in my jsp it is working fine
but it is not able to read the same from the resource file ...
here are the steps i
-
De: Yansheng Lin [mailto:[EMAIL PROTECTED]
Enviada em: Friday, August 01, 2003 11:43 AM
Para: 'Struts Developers List'
Assunto: RE: I18N in struts
This has been asked for many times:).
This link is a great starting point:
http://www.anassina.com/struts/i18n/i18n.html
-Original Message
On thing that wasn't mentioned.
You have to cast to (String) in the scriptlets example as define does not
set a type.
bean:message key=deleteBusiness.confirm.p1 arg0=%=(String)orgName%/
Jason Lea [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Tin Pham wrote:
Hi,
Individually
Thanks! I really appreciate your help.
I guess JSTL will eventually replace struts custom tags?
Jason Lea [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Tin Pham wrote:
Hi,
Individually these all work
deleteBusiness.confirm.p1 = Confirm company b{0}/b is correct.
On Fri, 20 Jun 2003, Tin Pham wrote:
Date: Fri, 20 Jun 2003 02:15:39 -0400
From: Tin Pham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: i18n, passing variable into arg0 using bean:message
Thanks! I really appreciate your help
Hi,
Individually these all work
deleteBusiness.confirm.p1 = Confirm company b{0}/b is correct.
bean:message key=deleteBusiness.confirm.p1 arg0=Esso/
bean:write name=deleteOganizationForm property=organizationName
scope=session ignore=true/
Instead of using a literal of esso we want to use the
Tin Pham wrote:
Hi,
Individually these all work
deleteBusiness.confirm.p1 = Confirm company b{0}/b is correct.
bean:message key=deleteBusiness.confirm.p1 arg0=Esso/
bean:write name=deleteOganizationForm property=organizationName
scope=session ignore=true/
Instead of using a literal of esso we
cell
[EMAIL PROTECTED]
-Original Message-
From: Tin Pham [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 6:04 AM
To: [EMAIL PROTECTED]
Subject: i18n, passing variable into arg0 using bean:message
Hi,
Individually these all work
deleteBusiness.confirm.p1 = Confirm
Hi all
Im trying to i18n an application and am using the standard
bean:message key=myKey/ tag. Everything works OK
but
i want to write something like
html:link title=bean:message key='myKey'/...forward= ... /
and this just put in the quoted string without any substitution (ive tried a few
try this
snippet
bean:define id=myVar
bean:message key=myKey /
/bean
html:link title=%=myVar % forward= ... /
/snippet
-D
- Original Message -
From: Vivian, Nigel (N.) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 7:04 AM
Subject: tags within tags i18n
I have multiple language support in Struts.
1. How to call to _javascript_:popup window from struts
2. How to extend this to popup windows's messages also.
Regards
Chandramoulee
Hi,
The Tiles config files should contain the resource keys (put
name=title value=a.key /). You use this keys in the jsp file in
conjunction with tags accepting such keys:
tiles:importAttribute /
bean:write name=a.key /.
You can implement your own SmartMenuItem, taking a key as input, and
Has anyone written a class (which they would like to share) that
extends SimpleMenuItem to retrieve the bundle key for value and
global forward for the link?
I was envisioning something along the lines of:
item name=webapp.page.news value=news
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: i18n in SimpleMenuItem
Date: Fri, 28 Feb 2003 21:03:36 -0600
Has anyone written a class (which they would like to share) that
extends SimpleMenuItem to retrieve the bundle key for value and
global forward for the link?
I was envisioning something along
-Original Message-
From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 7:15 PM
To: 'Struts Users Mailing List'
Subject: AW: bean:message problems with i18n
James, thanks for your help!
I tried it in different browser types and in different
2003 12:08
An: 'Struts Users Mailing List'
Betreff: RE: bean:message problems with i18n
Hi Bernhard,
I have the same problems as you.
Application.properties (fallback english)
Application_de_DE.properties( German translation )
I'm using 1.1b2. If your OS language is German the German property
, 2003 12:48 PM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: AW: bean:message problems with i18n
Hi Toby,
I solved this problem doing something different: I instantiate now the
Locale object only with the language parameter, and *without*
the country
parameter.
new
; 'Struts Users Mailing List'; Rademacher Tobias
Betreff: RE: bean:message problems with i18n
Hi Bernhard,
This is what i logged with log4j within my action
LOGGER.debug(Request Locale + request.getLocale() );
LOGGER.debug(Current locale: + getLocale(request));
log file snipplet
What's wrong with using:
anything.goes={0}
if i18n isn't needed? I feel sorry for the person who has to maintain
multiple sets of files needlessly.
I18N is only one reason to use resource files for messages. What happens
when you need to change how a common message reads? You need to go
I feel really bad for the person
maintaining code written that way.
Why? What's wrong with using:
anything.goes={0}
if i18n isn't needed? I feel sorry for the person who has to maintain
multiple sets of files needlessly.
If you use a resource file, changes to text strings require a text file
We have big problems with the use of the i18n messages, used with the
bean:message tag. But the problems encounter only in a special scenario:
1.) A German user loggs in - a German locale is set using
Action.setLocale()
- exploring some JSPs, all messages are in German, that's good.
2
I forgot: we use the struts version 1.1b3
-Ursprüngliche Nachricht-
Von: Hirschmann, Bernhard
Gesendet: Donnerstag, 13. Februar 2003 18:41
An: Struts User Mailing List (E-Mail)
Betreff: bean:message problems with i18n
We have big problems with the use of the i18n messages, used
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 11:41 AM
To: Struts User Mailing List (E-Mail)
Subject: bean:message problems with i18n
We have big problems with the use of the i18n messages, used with the
bean:message tag. But the problems encounter only in a
special scenario
problems with i18n
Have you tried opening up a new browser and trying again? Sounds like it may
be a caching issue. Also, check that your html:html tag is generating the
correct lang attribute. Reload the page and view source, then check the
HTML tag.
-= J
-Original Message-
From
with i18n
James, thanks for your help!
I tried it in different browser types and in different windows. So this
appears also in different HTTPSessions. I can reload as much as I want, and
I do not use any proxies for that. So I guess it is not a caching issue.
I checked the html:html tag. The lang
: bean:message problems with i18n
Hello all!
this is still an open thread for me. It's horrifying...
Any help highly appreciated!
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Hirschmann, Bernhard
Gesendet: Donnerstag, 13. Februar 2003 19:15
An: 'Struts Users Mailing List'
Betreff: AW
it.)
Good luck,
Remke Rutgers
-Oorspronkelijk bericht-
Van: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 14 februari 2003 8:18
Aan: 'Struts Users Mailing List'
Onderwerp: AW: bean:message problems with i18n
Hello all!
this is still an open thread for me. It's
]
Subject: Problem with struts, taglibs and i18n
Hello,
I've got a little problem: I am working on an application that uses
struts, castor, taglibs, etc. and I've written a custom tag
that will create the page-design for me:
...
[Part of my tld]
tag
namemyDesign/name
tagclasstag.DesignTag
Why Validator doesn't support i18n for testing numbers (float,double)
whereas it does it for date types?
I'm wondering whether i have to
1 /subclass org.apache.struts.validator.FieldChecks and overwrite method
validateFloat and validateDouble
or
2/ add to GenericTypeValidator (package commons
Hi at all,
i have a problem with my Resourcebundles.
When the user logged in he/she should see the login page with his/her appropriate
language values.
the problem is, i can change the language into a language other than german
(Locale=de) but struts is still
displaying the values from the
Hi,
I am using Win2kServer using English version. I wanna test
the i18n support from struts. I want to create an app
using Chinese and German language. How to emulate it using
struts? I mean how to make struts to think that this
application runs on Chinese/German locale.
Regards
that i18n in struts is different from swing in that
you must always tell the java.text and util classes which locale to use.
The default locale of the server may not be what the user wants. Is that
what you meant by
make struts to think that this application runs on Chinese/German locale?
Taylor Cowan
-Ursprüngliche Nachricht-
Von: Taylor Cowan
Gesendet: Mittwoch, 5. Februar 2003 09:42
An: Struts Users Mailing List
Betreff: Re: Testing I18n.
Struts can detect the client's prefered language by using the
accept-languages header value. You can do this on IE by selecting
ToolsInternet
One of the original reasons Struts was created was to handle I18N. That's
why it's tied into the framework so closely. Even if you don't need to
support multiple languages you should still use a resource file to store
messages to make changes *much* easier.
David
From: Dave Ford [EMAIL
: Monday, February 03, 2003 10:30 AM
To: [EMAIL PROTECTED]
Subject: Re: When i18n isn't Needed
One of the original reasons Struts was created was to handle I18N. That's
why it's tied into the framework so closely. Even if you don't need to
support multiple languages you should still use a resource
:-), never thought of doing that. I feel really bad for the person
maintaining code written that way.
David
From: Sri Sankaran [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: When i18n isn't Needed
Date: Mon
PROTECTED]
Subject: Re: When i18n isn't Needed
One of the original reasons Struts was created was to handle I18N. That's
why it's tied into the framework so closely. Even if you don't need to
support multiple languages you should still use a resource file to store
messages to make changes *much
Most of the real work can occur on the back end in POJOs (Plain Old Java
Objects). In practice, the way to accept dates in a form is through a
select box and/or JavaScript calendar. So you start by sending out a set
of three select boxes with the year/month/day (localised if need be).
When
It seems to me that for apps that do not need i18n, i18n constructs shouldn't be
forced upon the user. Is there a way to return an error message from
ActionForm.validate(..) without dealing with a resource file?
Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com
1 - 100 of 359 matches
Mail list logo