Extending the Struts tags to show required fields and validation errors.
I'm working on extending the Struts HTML form tags so that they are aware of the Struts Validator. I'm doing this to meet these two requirements:
- All fields that are required fields will be indicated with a red star or some other indicator.
- All fields fields that have failed Stuts Validation will show up with a red box or some otner error indicator.
I've already made some progress on this and I have a good solid proof-of-concept, but I get this nagging feeling that I am reinventing the wheel here - even though googling has turned up nothing.
Is the extended-tags approach the best way to meet my two requirements above? Has this work already been done for Struts - that is - am I reinventing the wheel?
Tags:
Java