| Article: |
Getting the Most Out of the Struts Tag Libraries | |
| Subject: | how to use format with dates | |
| Date: | 2003-12-04 23:19:02 | |
| From: | anonymous2 | |
|
Response to: how to use format with dates
|
||
|
First, I tried to some dates "the struts-way" self referencing the session in the session by putting session.setAttribute("thisSess", session);
|
||
Showing messages 1 through 2 of 2.
-
how to use format with dates
2004-03-09 15:28:55 jonathan@fallinhouse.com [View]
-
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



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>