is there a way to mark a field in a HTML form as required?
I know that there is a rejectIfEmpty method in the ValidationUtils class, but I'am searching for a way to include this validation rule directly into the JSP page.
rejectIfEmpty is the only validation rule I need besides format checking. That's why i don't want to create an extra validation class just to check wether a form field is empty or not.
Is there a JSP tag where you can mark a field as required? I think this is a common task in web applications, so such an tag would come in handy :-I