aspose file tools
The moose likes Spring and the fly likes need help on custom date formatter in Spring 3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "need help on custom date formatter in Spring 3.0" Watch "need help on custom date formatter in Spring 3.0" New topic
Author

need help on custom date formatter in Spring 3.0

vivek dr
Greenhorn

Joined: Jan 24, 2013
Posts: 2
Hi i need to parse date format passed to webservice to specific format.
By the way what is the default date format that it would understand???

no matter whatever i try i get below error in soapUI:

<data contentType="null" contentLength="147"><![CDATA[Request Failed: Cannot convert value of type [java.lang.String] to required type [java.util.Date]: no matching editors or conversion strategy found]]></data>


i googled a lot for the answers.. found few none of them worked.. below is what i tried,

application-context.xml




Any help will be deeply appreciated. since i have been trying with various permutations and combinations past 2 weeks with no luck... even posted this on spring community,, i got no response :-(
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1282

Hi i need to parse date format passed to webservice to specific format.


You are receiving a String in an MVC controller that must be converted to a date? If so what does the date string look like and how is it being posted in, perhaps show your handler method in your controller that is receiving this input.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: need help on custom date formatter in Spring 3.0
 
Similar Threads
Can't get a date
Compiler Says That My Class Is Not "public"!
Trouble formatting a Date based on the User's Locale
Trying to parse a String to a Date
Working with Dates