Hello,
I tried to implement a conditional mask in javascript in my
validator-rules.xml. The source file (htmL) of the browser escaped all the
dashes in my mask pattern correctly. What happens is the escaped dashes in
my mask pattern all disappear when they come to the javascript function in
validator-rules.xml. (printed out with alert). For example, I use '\w' to
stand for all the word chars in my mask pattern in validation.xml, in the
html created by jsp, it is '\\w', (it is always doubled in html page so if
I give 4 dashes in validation, it is 8 in html, which does not work either
), but it is 'w' in the javascript function in validator-rules.xml. I am
using the 1.1-beta3. I didn't have this problem before until I updated my
struts into 1.1-beta3. Can it be a bug?
Thank you for any help.
ginger
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]