Declaring a Date object within the prop tag in application context

I am trying to do the following:

<bean id="someBean" class="">
  <property name="config">
    <prop key="startDate"> a java.sql Date object </prop>

How can I instantiate a Date object within the prop tag?



I don't know why you would want to have an instance of java.sql.Date - afaik that is for JDBC mapping. If you are using java.util.Date (which I suspect you are).

Then the example here works for me.

Need Your Help

jQuery outer height is zero?

jquery height

Why is the height of my search form 0? It's at least 20px high.

Permissions for Voice search

android speech-recognition android-permissions

Running Google Voice Search on my ICS (Android 4.0.4) tablet yields strange behavior with the following warnings:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.