I think the *cleanest* way is to format data at presentation layer
(jsp). Last example from Laurie is quite correct and clean, if it is too
long code let get a try with JSTL and
Struts-EL taglibs ()
Michael Ewers escribió:
Hi,
To avoid misunderstandings: My goal is to have a DynaActionForm
Hi,
To avoid misunderstandings: My goal is to have a DynaActionForm
definition's "initial"-value translated in a locale specific manner so
that e.g. the -tag displays a initial="1,001.00" as a
"1.001,00" in German locale Browsers.
After reading some struts-code I think that the best (meaning
From: "Laurie Harper" <[EMAIL PROTECTED]>
> Michael Ewers wrote:
> > Can anyone see a reason why the html:text implementation in
struts-html.tld
> > doesn't support a formatKey attribute?
>
> I guess because there are already ways to format values which can be
> composed with so it doesn't *need*
Michael Ewers wrote:
Can anyone see a reason why the html:text implementation in struts-html.tld
doesn't support a formatKey attribute?
I guess because there are already ways to format values which can be
composed with so it doesn't *need* to support it. If
there's some reason that approach
Can anyone see a reason why the html:text implementation in struts-html.tld
doesn't support a formatKey attribute?
To whom can I send patches that I write?
Thanks,
Michael.
> That doesn't allow the use of the Struts HTML tags though, since you
> can't use a tag in a tag attribute... This will w
That doesn't allow the use of the Struts HTML tags though, since you
can't use a tag in a tag attribute... This will work, though:
A little cumbersome, and not the only way. You can also do it without a
nested if you don't mind creating a scripting variable.
L.
Ivan
">
Michael Ewers escribió:
The problem is that the tag doesn't have a formatKey-attribute
and I want the initial value to be displayed in a text-field, not as a pure
html-output.
In other words: I need struts to make a "" out of a "...initial="1000" with
German locale set in browser.
Thans,
--- Ursprüngliche Nachricht ---
> Von: Laurie Harper <[EMAIL PROTECTED]>
> An: user@struts.apache.org
> Betreff: Re: Some i18n issues
> Datum: Wed, 14 Sep 2005 11:20:17 -0400
>
> And for the validator issue, you can localize your validation rules by
> defining a seperate set f
The problem is that the tag doesn't have a formatKey-attribute
and I want the initial value to be displayed in a text-field, not as a pure
html-output.
In other words: I need struts to make a "" out of a "...initial="1000" with
German locale set in browser.
Thans,
Michael.
> You have to use an i
And for the validator issue, you can localize your validation rules by
defining a seperate set for each locale. I don't know if there's a way
to make the standard, included validations locale-aware but you can
define alternates where necessary if not. Also, Struts 1.3 will
introduce an 'extends
You have to use an initial value of "1000".
Then where you print this initial value, at your jsp, use formatting
options:
formatKey="format.number" />
format.number is an entry in you MessageResources.properties
For german MessageResources_de.properties:
format.number=#0.
Hi,
I'm new to this group so first of all I'm pleased to have the opportunity to
ask questions here.
My question(s):
1) I'm trying to write an application that supports i18n with Struts. I use
DynaActionForm for my forms, so I defined them with initial values, e.g.:
I have Germa
12 matches
Mail list logo