struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff_Mycha...@nlgroup.ca
Subject Simple Formatted Date..
Date Fri, 21 Jun 2002 15:01:21 GMT


Greetings:
     Assuming That I do not want to use another tag lib at this point, how have
others performed this type of thing:

     Simple Problem:
     I need to have today's date on every page. I would like to the format
attribute in the bean:write tag
to go from this:
     <% java.util.Date date = new java.util.Date() ;%>

     <%= SomeClass.formatDate(date) %>

to this:
     <bean:write ...... format="date.format"/>

     It seems that  the bean:define tag can help out here. How can create a new
Date() in bean:define

Am I out in left field?





--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message