Hello,

A cool little trick on the "today" issue is to use a little known aspect of the 
<jsp:useBean> tag. The useBean exposes its creation datetime as a scoped 
variable!

Beacause of this you can do the following:

<jsp:useBean id="now" class="java.util.Date" />
<c:set var="today" value="${now}" />

Now you can use ${today} anywhere you like. Personally, I use the 
<fmt:formatDate> tag to format into whatever display format I need.

HTH,
-Rod

-----Original Message-----
From: ××œ×—× ×Ÿ מעין [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 23, 2007 11:43
To: user@struts.apache.org
Subject: DateTimePicker in time format not working with today

hi all..
i've finally started to learn struts2 and trying work a sample application 
of an hours reporting app.

i'm trying to use the DateTimePicker time format, however i have 2 issues 
with it:

trying to specify today in the value, does not display the current time (it 
doesn't even work in showcase app) it only displays 00:00.

also is there a way to convert the time from a string to date object ? i'm 
not sure it's possible, but maybe create a date object with the current date 
as default and the time specfied.

anoter issue in date enddate and startdate attributes, i know of only one 
function called today, but is there a way to limit and start date, and end 
date dynamically with something like today-1, that would allow dates to be 
entered up to 1 month back?

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to