How to send date type as parameter from JSP to servlet to insert into MySQL database. When I use getParameter () in the servlet, it shows that I am using incompatible types. In fact, I declared a variable of type java.sql.Date, which I assign to the request parameter in the servlet, but I get an error that the types are incompatible. I am trying to send a date from JSP through a servlet to MySQL. How is the parameter transmitted and received in this case?
source
share