title: sending date as parameter from JSP to servlet
body: <p>How do I send a date type as a parameter from JSP to servlet so as to insert to MySQL database. When I use getParameter() in the servlet, it shows that I'm using incompartible types. Actually I declared a variable of java.sql.Date type which I assign to the request parameter in the servlet but I get an error that the types are incompartible. I'm trying to submit date from JSP via servlet to MySQL. How is the parameter sent and received in such a case?</p>