Re: regex validator problem

2014-12-28 Thread Chris
Hi, 

1 - When you wrote "select box", did you mean drop-down list ?
Because drop-down list are not exactly  input fields. The user can't write 
something he wants. Could you please give examples ?
2 - Why don't you use "" like in 
"EditAction-validation.xml" ?
3 - If you want tu use an input field with regex, what sort of value are you 
waiting for ?
Could you give please some literal samples ?
Regards,
Chris 

 Le Samedi 27 décembre 2014 15h18, Dave Newton  a 
écrit :
   

 Did you try defining a complete regex, e.g., with the start/end
markers, `^` and `$`, at the beginning/end of the regex?

On Sat, Dec 27, 2014 at 8:10 AM, Yaragalla Muralidhar
 wrote:
> Hi Dave,
>      when "-1" is getting submited it has to display error msg which is
> not getting displayed. successfully moving to the next page. It is not
> moving to the input page even.
>    Now i have changed the validator to int  so everything is working fine.
> but i need regex validator to work even for further validations.
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
>
> *http://yaragalla.blogspot.in/ *
>
> On Sat, Dec 27, 2014 at 7:33 PM, Dave Newton  wrote:
>
>> On Sat, Dec 27, 2014 at 7:23 AM, Yaragalla Muralidhar
>>  wrote:
>> >> > validator in the following way but it is not working. Please help.
>>
>> Define "not working".
>>
>> --
>> e: davelnew...@gmail.com
>> m: 908-380-8699
>> s: davelnewton_skype
>> t: @dave_newton
>> b: Bucky Bits
>> g: davelnewton
>> so: Dave Newton
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>



-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton
b: Bucky Bits
g: davelnewton
so: Dave Newton

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



   

Re: regex validator problem

2014-12-27 Thread Dave Newton
Did you try defining a complete regex, e.g., with the start/end
markers, `^` and `$`, at the beginning/end of the regex?

On Sat, Dec 27, 2014 at 8:10 AM, Yaragalla Muralidhar
 wrote:
> Hi Dave,
>   when "-1" is getting submited it has to display error msg which is
> not getting displayed. successfully moving to the next page. It is not
> moving to the input page even.
> Now i have changed the validator to int  so everything is working fine.
> but i need regex validator to work even for further validations.
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
>
> *http://yaragalla.blogspot.in/ *
>
> On Sat, Dec 27, 2014 at 7:33 PM, Dave Newton  wrote:
>
>> On Sat, Dec 27, 2014 at 7:23 AM, Yaragalla Muralidhar
>>  wrote:
>> >> > validator in the following way but it is not working. Please help.
>>
>> Define "not working".
>>
>> --
>> e: davelnew...@gmail.com
>> m: 908-380-8699
>> s: davelnewton_skype
>> t: @dave_newton
>> b: Bucky Bits
>> g: davelnewton
>> so: Dave Newton
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>



-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton
b: Bucky Bits
g: davelnewton
so: Dave Newton

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
Hi Dave,
  when "-1" is getting submited it has to display error msg which is
not getting displayed. successfully moving to the next page. It is not
moving to the input page even.
Now i have changed the validator to int  so everything is working fine.
but i need regex validator to work even for further validations.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *

On Sat, Dec 27, 2014 at 7:33 PM, Dave Newton  wrote:

> On Sat, Dec 27, 2014 at 7:23 AM, Yaragalla Muralidhar
>  wrote:
> >> > validator in the following way but it is not working. Please help.
>
> Define "not working".
>
> --
> e: davelnew...@gmail.com
> m: 908-380-8699
> s: davelnewton_skype
> t: @dave_newton
> b: Bucky Bits
> g: davelnewton
> so: Dave Newton
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: regex validator problem

2014-12-27 Thread Dave Newton
On Sat, Dec 27, 2014 at 7:23 AM, Yaragalla Muralidhar
 wrote:
>> > validator in the following way but it is not working. Please help.

Define "not working".

-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton
b: Bucky Bits
g: davelnewton
so: Dave Newton

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
Number is fine Dev. But regex validator has to work right. i worked with it
before. Now it is not working. I want to make it work.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *

On Sat, Dec 27, 2014 at 6:37 PM, Dave Newton  wrote:

> Why use a regex for what appears to be a number?
> On Dec 27, 2014 5:36 AM, "Yaragalla Muralidhar"  >
> wrote:
>
> > i have a select box. by defualt it submits "-1". I want to write a
> > validation using regex tosay the selection is mandatory. I have written
> the
> > validator in the following way but it is not working. Please help.
> >
> > 
> >   
> >   cannot find
> > error.branch.required
> >   
> >
> >
> > *Thanks and Regards,*
> > Muralidhar Yaragalla.
> >
> > *http://yaragalla.blogspot.in/ *
> >
>


Re: regex validator problem

2014-12-27 Thread Dave Newton
Why use a regex for what appears to be a number?
On Dec 27, 2014 5:36 AM, "Yaragalla Muralidhar" 
wrote:

> i have a select box. by defualt it submits "-1". I want to write a
> validation using regex tosay the selection is mandatory. I have written the
> validator in the following way but it is not working. Please help.
>
> 
>   
>   cannot find
> error.branch.required
>   
>
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
>
> *http://yaragalla.blogspot.in/ *
>