I have a drop down menu created in HTML with two dates and a submit button.
Here is the code
<table>
<tr>
<td> Date: </td>
<td> <select name="date">
<option> July 02,2012 </option>
<option> July 06,2012 </option>
</select>
</td>
</tr>
</table>
<input type="submit" value="Submit">
The form action is linked to a JSP page. Where I got to create a date object based on the selection from this drop down menu.
What I have done so far
<tr>
<td> Date: </td>
<td> <%= request.getParameter("date")%> </td>
</tr>
I know I got to do something like
Date date = new date();
But I do not completely understand where to put this or how do I start?