I hadn't thought of extending the html:input & bean:write
> tags to include a
> locale for formatting. Great idea! I convert the BigDecimals
> into a locale
> formatted String for html:input and use the formatKey
> variable of bean:write
> for display.
>
> -O
This
> NumberUtil
> class has a static method which takes a String and a Locale
> as parameters
> and returns a BigDecimal.
>
> Huw
>
> -Original Message-
> From: Simon Matic Langford [mailto:[EMAIL PROTECTED]
___
>
> *** WARNING ***
>
> This email has been received from the internet.
> Check any attachments for viruses before opening them.
> ___
>
>
>
>
> > -Original Message-
> > From: Simon Matic Lan
>
>
> Hi.
>
> I'm investigating ways to support multiple languages in my
> app, without using the typical
> ResourceBundle/MessageResources approach. I was thinking that
> I would like to use a database instead. It seems to me that a
> large application trying to support multiple languages
yeah, I know I can do this, but this is a large system with around 200
jsps 80 views
and a number of controllers. doing the display is reasonably simple I
know, but extremely
tedious and prone to errors, I was hoping for a more elegant solution
which also handles
input...
>
> Java comes with i18n
isplaying them on the screen, experiment bean:write with
> format/formatKey/locale attributes. If you use FormDef to specify
> format keys, you can use the same key for form input and display.
>
> Hubert
>
>
> On Fri, 3 Dec 2004 09:49:52 -, Simon Matic Langford
> &
Is there a general pattern for localised input, ie being able to enter
numbers and dates formatted for Germany but getting them formatted for
Java on the server side for constructing BigDecimals etc, aside from
using utilities in the java.text package? What about for displaying back
the other way?
have you got any documentation anywhere on your site? I couldn't see
any...
> -Original Message-
> From: Tak Yoshida [mailto:[EMAIL PROTECTED]
> Sent: 03 December 2004 03:01
> To: Struts Users Mailing List
> Subject: Re: Pre-populating a form from a database
>
>
> Carlos Cajina wrote
right click on the service in services and go to properties.
go to the Logon tab, and there you can change the log on.
I don't know what user you'll need to run as, but if this is
a public server then an administrator is probably none too
sensible :-) I run mine as "NETWORK SERVICE" which you can
by character basis...
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
> Sent: 24 November 2004 17:59
> To: [EMAIL PROTECTED]
> Subject: Re: Getting a regular expression from application.properties
>
>
>
> Did you try
I have a regular expression for date formatting (don't ask!) in our
application.properties. This can
change depending on user locale. I am trying to get the following value
back:
^[0-9]'{'0,10'}'(,[0-9]'{'0,2'}')?$
However in MessageResources at line 346: format = new
MessageFormat(escape(formatS
why doesn't validator use an entity resolver to pull the dtd out of the
jar?
>
>
> Probably trying to do xml validation using the dtd specified on the
> doctype. Save dtd locally (and change reference) or make sure
> you have a
> network path to jakarta.apache.org
>
> JC
>
>
>
>
>
it's an xml thing, try putting & instead of & as & is a special
character
for xml which starts an entity, and & is the entity for an ampersand
:-)
> -Original Message-
> From: Brian Bezanson [mailto:[EMAIL PROTECTED]
> Sent: 22 November 2004 14:21
> To: Struts Users Mailing List
> Subje
er. I have asked on the Tomcat User Mailing list just to
> >confirm it. Thanks again.
> >
> >
> >On Fri, 19 Nov 2004 09:25:07 -, Simon Matic Langford
> ><[EMAIL PROTECTED]> wrote:
> >
> >
> >>AFAIK the only way is to c
AFAIK the only way is to change you web container config to ensure your
webapp is in the root context, ie in Tomcat 4.1:
in the server.xml
if you point docBase to the directory your war unpacked to, then it
should
work fine. I don't know how it works for other containers...
simon
>
15 matches
Mail list logo