But when type conversion error will be occurred, I want to display my
custom error message instead of the auto generated one. So how to do that.
On Dec 14, 2007 11:18 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Arpan Debroy <[EMAIL PROTECTED]> wrote:
> > Using 'Long' is the correct way to g
--- Arpan Debroy <[EMAIL PROTECTED]> wrote:
> Using 'Long' is the correct way to get 'required' validator worked.
> But now I want show error message when user will put string or character
> instead of any long value. What validator to use?
If you're using the defaultStack this is done for you; ty
[EMAIL PROTECTED]>
wrote:
Use "required" validator only when a field contains a number. Use
requiredstring for String based field.
-Original Message-
From: Arpan Debroy [mailto:[EMAIL PROTECTED]
Sent: Monday, December 10, 2007 11:00 AM
To: Struts Users Mailing Lis
; >> requiredstring for String based field.
> >>
> >> -Original Message-
> >> From: Arpan Debroy [mailto:[EMAIL PROTECTED]
> >> Sent: Monday, December 10, 2007 11:00 AM
> >> To: Struts Users Mailing List
> >> Subject: Re: Required val
r 10, 2007 11:00 AM
To: Struts Users Mailing List
Subject: Re: Required validator dosen't work
Yeah,
I am using following -
Other validators are working.
Anyway have anyone ever used "required" validator or can you use it now
once
to test.
Thanks
On Dec 10, 2007 5:26 PM, Simon Be
ember 10, 2007 2:33 PM
To: Struts Users Mailing List
Subject: Re: Required validator dosen't work
Right, if my text box is empty, I am getting back 0 allways.
Have u any idea, how to validate empty "long" data type value.
On Dec 11, 2007 12:51 AM, Dave Newton <[EMAIL PROTECTED]>
Right, if my text box is empty, I am getting back 0 allways.
Have u any idea, how to validate empty "long" data type value.
On Dec 11, 2007 12:51 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Arpan Debroy <[EMAIL PROTECTED]> wrote:
> > So that means there is now way I can check if
> > a text b
--- Arpan Debroy <[EMAIL PROTECTED]> wrote:
> So that means there is now way I can check if
> a text box, which takes the datatype "long", have
> any null value.
For *null*? A text box in the browser will never* send back a null to the
server, AFAIK. IIRC in Java converting an empty string into a
So that means there is now way I can check if
a text box, which takes the datatype "long", have any null value.
On Dec 10, 2007 11:40 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Arpan Debroy <[EMAIL PROTECTED]> wrote:
> > Then when you will use "required" validator. What's its use?
>
> Anyth
--- Arpan Debroy <[EMAIL PROTECTED]> wrote:
> Then when you will use "required" validator. What's its use?
Anything that can return null, like a checkbox, I suppose. Yes, I've used it,
but not for numbers, because an empty text box doesn't return null, like I
said.
> How to validate the text box,
er. Use
> requiredstring for String based field.
>
> -Original Message-
> From: Arpan Debroy [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 10, 2007 11:00 AM
> To: Struts Users Mailing List
> Subject: Re: Required validator dosen't work
>
> Yeah,
> I am usin
Then when you will use "required" validator. What's its use? Have you ever
used it.
How to validate the text box,which should carry numbers?
On Dec 10, 2007 10:40 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> AFAIK the "required" validator only checks for not-null.
>
> This is almost never what you
Use "required" validator only when a field contains a number. Use
requiredstring for String based field.
-Original Message-
From: Arpan Debroy [mailto:[EMAIL PROTECTED]
Sent: Monday, December 10, 2007 11:00 AM
To: Struts Users Mailing List
Subject: Re: Required validator do
AFAIK the "required" validator only checks for not-null.
This is almost never what you want, as an empty text box will still send back
an empty string, not null.
d.
--- Arpan Debroy <[EMAIL PROTECTED]> wrote:
> Yeah,
> I am using following -
>
>
> Other validators are working.
> Anyway have a
Yeah,
I am using following -
Other validators are working.
Anyway have anyone ever used "required" validator or can you use it now once
to test.
Thanks
On Dec 10, 2007 5:26 PM, Simon Berger <[EMAIL PROTECTED]> wrote:
> Do you have the Validation Interceptor on your Stack?
>
> Arpan Debroy schr
Do you have the Validation Interceptor on your Stack?
Arpan Debroy schrieb:
I want to validate -
1) The text box should have some value("required" validator doesn't show any
error message even if it's empty)..
2) The text box must have any numerical(I am using long data type) value. I
have no c
I want to validate -
1) The text box should have some value("required" validator doesn't show any
error message even if it's empty)..
2) The text box must have any numerical(I am using long data type) value. I
have no clue how to do it for long.
Can anyone please help..
Thanks
On Dec 6, 2007
The "symptom" of the problem is that "required" validator does not work at
all.
What a "required" validator should do?
If I don't put any value in the text box, it should throw an error message.
The "required" validator doesn't work
for any type of value. Can anybody use this validator successfully
Thanks for the code. Still nothing obvious (at least to me).
What exactly is the *symptom* of the problem? What behavior are you
seeing but not expecting?
- Gary
xniit2003 wrote:
Here's my code :-
in struts.xml file :-
name="input">/channels/channel_gro
Here's my code :-
in struts.xml file :-
/channels/channel_group_profile.jsp
/channels/channel_group_profile.jsp
in jsp :-
in validation xml :-
app id should not be null
Here "channelGroupTO" is a tr
xniit2003 wrote:
Have anybody successfully used "required" validator.
Yes.
One thing to note about validation is that it *won't* automatically
short-circuit if you're not using the workflow interceptor. Without
that interceptor validation can fail and your action's execute method
will stil
--- xniit2003 <[EMAIL PROTECTED]> wrote:
> I am trying to use "required" validator in struts2.
> But it seems this one dosen't work at all.
> Have anybody successfully used "required" validator.
What data type are you attempting to validate?
d.
-
22 matches
Mail list logo