Sign In/My Account | View Cart  

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>

Full Threads Oldest First

Showing messages 1 through 1 of 1.

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

    Hi I try to use Jakarta DateTime TagLib in one type java.util.Date both when ty execute prin en the page web the text "Invalid Date"

    exist someone posibility of to use Jakarta DateTime TagLib in java.util.Date ?

    my mail is el.muu.1@gmail.com