ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Getting the Most Out of the Struts Tag Libraries
Subject:   how to use format with dates
Date:   2004-03-09 15:28:55
From:   jonathan@fallinhouse.com
Response to: how to use format with dates

You can use Jakarta DateTime TagLib. Information located here. http://jakarta.apache.org/taglibs/doc/datetime-doc/datetime-1.0/index.html


With the Date Time Taglib, you can implement what you want like this:


Logged in Since: <dt:format pattern="HH:mm:ss" locale="true"><bean:write name="thisSess" property="creationTime"></dt:format>,
Last access: <dt:format pattern="HH:mm:ss" locale="true"><bean:write name="thisSess" property="lastAccessedTime" /></dt:format>,
Max inactive interval: <dt:format pattern="HH:mm:ss" locale="true"><bean:write name="thisSess" property="maxInactiveInterval" /></dt:format>


1 to 1 of 1
  1. how to use format with dates
    2008-03-12 17:54:30  rafaelpl [View]

1 to 1 of 1