留言板
birthday validation
hi
How To Validate Date Of birth Validation?
e.g-> if any one entet today date then error will show like age must be 18years or above
Thanks
Sasmita
How To Validate Date Of birth Validation?
e.g-> if any one entet today date then error will show like age must be 18years or above
Thanks
Sasmita
in action class you have to write
then in jsp
hope this might help you!!!!
if (your condition) {
SessionErrors.add(request, "ageError");
response.setRenderParameter("jspPage", "jsp path");
}
then in jsp
<liferay-ui:error key="ageError" message="age should be greater than 18"></liferay-ui:error>
hope this might help you!!!!