cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Taffelt <frank.taff...@interface-business.de>
Subject Re: JXTemplate formatDate problem
Date Fri, 19 Aug 2005 11:24:43 GMT
Marc Salvetti wrote:
> Hello,
> 
> 
>>  <c:set var="now" value="${java.util.Calendar.getInstance()}"/>
>> 
> try <c:set var="now"
> value="${java.util.Calendar.getInstance().getTime()}"/> 

the new version also doesn't work:

<?xml version="1.0"?>
<page
 xmlns:c="http://apache.org/cocoon/templates/jx/1.0">
 <test>
  <c:set var="now" value="${java.util.Calendar.getInstance().getTime()}"/>

  <variant>
   <c:formatDate value="${now}"/>
  </variant>
  
  <c:set var="sdf" value="${java.text.SimpleDateFormat('dd.MM.yyyy')}"/>
  <variant>
   ${sdf.format(now)}
  </variant>
  
 </test>
</page>


any other ideas ?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message