This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
We are using Web Based Application uisng Struts 1.1 with Dyna Action Forms. In this, one of our requirement is to get one date from table, set it in DynaAction Form and display in front end.Here, the Date format in the database table is in the format yyyy-MM-dd HH:mm:ss.SSS. (back end we use is SQLSERVER 2005)
But whereas the date format which Dynaction form stores is YYYY-MM-DD so the time portion is cut out.
Struts-config we declared Date as follows.
<form-property name="dateInserted" type="java.lang.String" /> How Can I set the entire yyyy-MM-dd HH:mm:ss.SSS value from the database into my DynaActionform property?