It is better that u validate the date in Java class & include that class in the JSP.
For my apllication the date format was MM/DD,YYYY
I will just give u the methods used by me while validating the date.
//Method to check the date format
public static boolean checkFormat(String date)
{...
i have done all this in one program. u can use the same. i m attaching it to this message.
Following method returns result set
public java.util.Collection select(String Str_sqlstmt) {
/** Statement object to save & execute the query
*/
Statement select_stmt = null;
/** To save the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.