Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set timestamp value in DynaAction form?

 
Sivabalakannan Nandagopal
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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?

Immediate help in this regard is appreciated.

Thanks

Rgds
Siva
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do not crosspost the same question in different forums
http://www.coderanch.com/t/56186/Struts/set-TimeStamp-DynaAction-Form-Struts

This is not an SCWCD-related question, so your topic should be closed here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic