I have a jsp file to get data via form, and passing it to a servlet.
<form action="RegistrationProcessing" method="get">
Date of Birth:<input type="text" name="dob">
</form>
This is the servlet file
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String dateofbirth=request.getParameter("dob");
}
I can't change the datatype of dateofbirth variable. It is saying it must be only string, what should i do now to store it as different datatype.I want to store in oracle database where the date format is '01-JAN-2013' , how can i parse to this datatype.