| | |
does request.getParameter() return string type only?
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Yes,
As far as date is concerned, you can decide on a format which you would be expecting from your users. At the server side, pull the date values entered by the user as a string, try to parse that using the
request.getParameter() always returns a string unless you plan on challenging the API.As far as date is concerned, you can decide on a format which you would be expecting from your users. At the server side, pull the date values entered by the user as a string, try to parse that using the
SimpleDateFormat class. If an exception is thrown, the user entered an invalid or unacceptable date; if no exception, then you would get a java.util.Date object which can be then converted to a java.sql.Date object which can then be persisted to a database. I don't accept change; I don't deserve to live.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
![]() |
Similar Threads
- program (Java)
- login page using javabeans and jsp (JSP)
- missing return statement (Java)
- Problem inserting data into database (JSP)
- Type mismatch: cannot convert from int to ResultSet (JSP)
- Please help(Problem in insertion data to database) (JSP)
- how to get value from javabean (JSP)
- Move out java code from jsp (Java)
- Jsp doesnt return parameter value (JSP)
- change statement (JSP)
Other Threads in the JSP Forum
- Previous Thread: Passing parameters back to calling document
- Next Thread: Page Onload problem
| Thread Tools | Search this Thread |
Tag cloud for JSP
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient project read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write






