1 Replies - 5342 Views - Last Post: 02 July 2012 - 10:17 PM

#1 rosepetalpowder  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 65
  • Joined: 28-February 12

Question JSP - creating date object from a drop down menu selection

Posted 29 June 2012 - 07:56 PM

Hey Experts,

I have a drop down menu created in HTML with two dates and a submit button.

Here is the code

<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?

This post has been edited by rosepetalpowder: 29 June 2012 - 08:00 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Question JSP - creating date object from a drop down menu selection

#2 fromTheSprawl  Icon User is offline

  • Monomania
  • member icon

Reputation: 513
  • View blog
  • Posts: 2,056
  • Joined: 28-December 10

Re: Question JSP - creating date object from a drop down menu selection

Posted 02 July 2012 - 10:17 PM

What do you need to do with the date?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1