• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to set TimeStamp in DynaAction Form in Struts

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
This tiny ad is guaranteed to be gluten free.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic