RE: i18n input

2004-12-06 Thread Simon Matic Langford
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

RE: i18n input

2004-12-06 Thread Simon Matic Langford
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]

RE: i18n input

2004-12-06 Thread Simon Matic Langford
___ > > *** WARNING *** > > This email has been received from the internet. > Check any attachments for viruses before opening them. > ___ > > > > > > -Original Message- > > From: Simon Matic Lan

RE: i18n and the database...

2004-12-03 Thread Simon Matic Langford
> > > 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

RE: i18n input

2004-12-03 Thread Simon Matic Langford
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

RE: i18n input

2004-12-03 Thread Simon Matic Langford
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 > &

i18n input

2004-12-03 Thread 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?

RE: Pre-populating a form from a database

2004-12-03 Thread Simon Matic Langford
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

RE: server shutdown

2004-11-26 Thread Simon Matic Langford
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

RE: Getting a regular expression from application.properties

2004-11-25 Thread Simon Matic Langford
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

Getting a regular expression from application.properties

2004-11-24 Thread Simon Matic Langford
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

RE: Validator : network unreachable

2004-11-24 Thread Simon Matic Langford
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 > > > > >

RE: Struts 1.2.4/Validator 1.1.3 and constant validation issue with '&' for constant-value

2004-11-22 Thread Simon Matic Langford
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

RE: URL Customization

2004-11-19 Thread Simon Matic Langford
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

RE: URL Customization

2004-11-19 Thread Simon Matic Langford
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 >