I forgot to mention that I'm using a DispatchAction class along with
the DynaValidatorForm so the validation is declarative. So for Item
2, I'll just create my own validation rule. I just wanted to ensure
that there wasn't already something available in the struts framework
that I would re-invent
I would approach these problems in two separate ways -- for item 1 I
would use a mask validator (regex).
Then in the form, I would provide methods that allow you to get the
converted values.
(In the form, you will need to convert the entered String value into
either using the dashes or slashes)
2 matches
Mail list logo