Casting an empty String to a double will give you 0.0.
On 20040303 12:10 PM, thomas Sontheimer [EMAIL PROTECTED]
wrote:
when I use the validator on the server side to validate a
double the
value is converted to 0.0 an no error is reported. has anyone meet
that problem? I parsed
the problem came from the java.lang.Double field of my DynaValidatorForm
which converted first any string in an empty string.
instead I use a java.lang.String field that I convert myself after
validation and it works.
-Original Message-
From: thomas Sontheimer [mailto:[EMAIL PROTECTED
when I use the validator on the server side to validate a double the
value is converted to 0.0 an no error is reported.
has anyone meet that problem?
I parsed the struts and commons bugzilla lists and didn't found anything
about.
thanks
thomas
since we may define parametrable messages in the ressource bundle, is it
possible to add parameters to the key in declarative exception handling?
and if yes, how can I do it?
thanks in advance.
thomas.
-
To unsubscribe,
has anyone an example for crud (Create, Read,
Update, Delete) functionnality with dispatchAction and jsp page code?
thanks in advance.
thomas.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
here are means to do it:
http://husted.com/struts/FAQ/view-logic.htm
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 3:17 PM
To: Struts-User
Subject: logic:iterate with changing row colors
hello,
i use logic:iterate and
you may also test if the *brand new* collection is defined with the
logic:present and logic:notPresent tags...
thomas.
-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 6:14 PM
To: 'Struts Users Mailing List'
Subject: RE: iterator tag
http://edhill.its.uiowa.edu/display/
http://htmltable.yuriy-zubarev.com/jsp/index.jsp
Has anyone tried these two taglibs?
which one do you recommend?
thomas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
: thomas Sontheimer [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
[EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE : RE : Validator and Dispatch Actions
Date: Mon, 25 Aug 2003 17:04:35 +0200
you don't need 2 action classes.
you may declare 2 actions
and Dispatch Actions
Thomas,
How do i have 3 actions here?
I have only one action with three methods each working on
SEARCH, CREATE
and EDIT.(which is why i use the dispatch Action)
Appreciate any other thoughts.
TIA,
Manglu
thomas Sontheimer wrote:
you have to use (Dyna
I had the same problem and your solution works.
thank you
thomas
-Original Message-
From: Rune Peter Bjørnstad [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 11:46 AM
To: Struts Users Mailing List
Subject: Re: Validation failes and returns (almost) empty page.
I
men walking
about.. ;)
Rune.
On Tue, 26 Aug 2003, thomas Sontheimer wrote:
I had the same problem and your solution works.
thank you
thomas
-Original Message-
From: Rune Peter Bjørnstad
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 11:46 AM
you have to use (Dyna)ValitatorActionForm instead of
(Dyna)ValidatorForm.
Then in your validation.xml file for each new rule you specify you have
to replace the name of the form by the name of the action using the
form. And the rule will be applied to the form only if it's called from
the action
code based on the fields submitted,
this seems
like an awful lot of rework just to get the validation accomplished.
From: thomas Sontheimer [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
[EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE
I'm attempting to use the validator with a DynaValidatorForm and it
returns a blank page if I don't fill the field.
And if I fill the username field I'm redirected to the good page
(/index.jsp).
any idea?
thomas
here are some parts from my code:
struts-config.xml:
form-bean
15 matches
Mail list logo