You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Je...@nlgroup.ca on 2002/06/21 17:01:21 UTC
Simple Formatted Date..
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>