aspose file tools*
The moose likes JDBC and the fly likes getParameter problem.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "getParameter problem...." Watch "getParameter problem...." New topic
Author

getParameter problem....

Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
Hi Friends,
I try to get fldFixedDate from my template and put it in dFixedDate but "dFixedDate" it's type is Date and doesn't accept this way how can I solve this problem?
dFixedDate = req.getParameter("fldFixedDate");
Thanks,
Elahe


Thanks,
Elahe
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
Dear Friends I solved it this way please share if you have better idea
...
ddFixedDate = req.getParameter("fldFixedDate");
long l = Date.parse( ddFixedDate );
dFixedDate = new java.sql.Date(l);
...
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
My God what a sign! I thought it is Happy face like thik
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: getParameter problem....