This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getParameter problem....
 
Similar Threads
Java and C# encoding prob
Variable type question?
error : urgent
Why it put NULL valuse in my field?
jboss deployment problem