title: JSP Database setTime, get a time from form
body: <pre><code>// Create the prepared statement and use it to
  // INSERT the student attributes INTO the Student table.
  PreparedStatement pstmt = conn.prepareStatement(
  "INSERT INTO Review VALUES (?, ?, ?, ?)");
  
  pstmt.setInt(1, Integer.parseInt(request.getParameter("section_id")));
  pstmt.setString(2, request.getParameter("quarter"));                   
  pstmt.setInt(3, Integer.parseInt(request.getParameter("year")));
  pstmt.setTime(4, ????)
  </code></pre>
  
  <p>Can anyone tell me how can i read values with the type Time?? Lets say time like "16:34"? How can I define a pattern and read it?</p>