<br><font size=2 face="sans-serif">Hello Sebastian</font>
<br>
<br><font size=2 face="sans-serif">I'm not familiar with the taglib you
speak of either, but I use the JSTL format taglib:</font>
<br>
<br><font size=2 face="sans-serif"><%@ taglib prefix="fmt"
uri="http://java.sun.com/jstl/fmt" %></font>
<br>
<br><font size=2 face="sans-serif"><c:set var="dateString"></font>
<br><font size=2 face="sans-serif">        <cms:contentshow
element="Date" /></font>
<br><font size=2 face="sans-serif"></c:set></font>
<br><font size=2 face="sans-serif"><%</font>
<br><font size=2 face="sans-serif">        java.util.Date
date = new java.util.Date();</font>
<br><font size=2 face="sans-serif">        date.setTime(Long.parseLong(pageContext.getAttribute("dateString").toString()));</font>
<br><font size=2 face="sans-serif">        pageContext.setAttribute("date",
date);</font>
<br><font size=2 face="sans-serif">%></font>
<br><font size=2 face="sans-serif"><fmt:formatDate value="${date}"
type="date" dateStyle="long"  /></font>
<br>
<br>
<br><font size=2 face="sans-serif">In this way the date get formated in
the locale of the site-context, e.g. I use danish locale, and the date
get formated like i should.</font>
<br>
<br><font size=2 face="sans-serif">You can see documentation for the taglib
here:</font>
<br>
<br><font size=2 face="sans-serif">http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html</font>
<br>
<br><font size=2 face="sans-serif"><br>
Best Regards<br>
Stefan Uldum Grinsted<br>
---------------------------------<br>
Par No 1 Interactive a|s<br>
sug@interactive.as<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Sebastian Lavena"
<slavena@mkti.com.ar></b> </font>
<br><font size=1 face="sans-serif">Sent by: opencms-dev-bounces@opencms.org</font>
<p><font size=1 face="sans-serif">28-07-2005 14:00</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
The OpenCms mailing list <opencms-dev@opencms.org></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">"The OpenCms mailing list"
<opencms-dev@opencms.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [opencms-dev] ContentShow: DateTime</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>I couldnīt find the taglib "i18n-1.0", but
with your code you give me ideas, <br>
and I parse in "my way" the date, to write it in my html in spanish
format, <br>
and 2 digit for day and month (i.e.: 30/05/05 and not 30/5/05).<br>
<br>
So, thanks, my problem is now solved. But I think thatīs probably the <br>
library "i18n-1.0", can be helpful to me in the future... any
idea thatīs <br>
where I can find it..?<br>
<br>
Best regards,<br>
<br>
Sebastian<br>
<br>
<br>
----- Original Message ----- <br>
From: "Borja Marcos Suarez" <borja.suarez@fundacionctic.org><br>
To: "The OpenCms mailing list" <opencms-dev@opencms.org><br>
Sent: Thursday, July 28, 2005 3:06 AM<br>
Subject: RE: [opencms-dev] ContentShow: DateTime<br>
<br>
<br>
I think that the standard way to do it is using the standard i18n as <br>
follows:<br>
<br>
<%@ taglib uri="http://jakarta.apache.org/taglibs/i18n-1.0"
prefix="i18n" %><br>
<cms:contentcheck ifexists="YourDateElement"><br>
<c:set var="yourDate"><cms:contentshow element="YourDateElement"
/></c:set><br>
<%<br>
Date date= null;<br>
try<br>
{<br>
date = new <br>
Date(Long.parseLong((String)pageContext.getAttribute("yourDate")));<br>
}<br>
catch (Exception e)<br>
{<br>
out.println (e.getMessage());<br>
}<br>
%><br>
<i18n:formatDate value='<%= date %>' style="short" /><br>
</cms:contentcheck><br>
<br>
Hope this helps you,<br>
<br>
Best regards<br>
<br>
Borja Marcos Suarez<br>
<br>
<br>
-----Mensaje original-----<br>
De: opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org]
<br>
En nombre de Sebastian Lavena<br>
Enviado el: miércoles, 27 de julio de 2005 22:58<br>
Para: The OpenCms mailing list<br>
Asunto: [opencms-dev] ContentShow: DateTime<br>
<br>
Hi list!<br>
<br>
I'm trying to show a date (not time), in my web...<br>
I have in an XML a DateTimeOpenCms, but if I use "<cms:contentshow<br>
element="DateTime" />", OpenCMS writes in my html a large
number (the<br>
longint thatīs represent the dateTime).<br>
<br>
So, hoy I can write in my html (from jsp) only the date thatīs this number<br>
represent?<br>
<br>
Thanks you very much,<br>
<br>
Sebastián<br>
<br>
<br>
<br>
_______________________________________________<br>
This mail is send to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
http://mail.opencms.org/mailman/listinfo/opencms-dev<br>
<br>
<br>
_______________________________________________<br>
This mail is send to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
http://mail.opencms.org/mailman/listinfo/opencms-dev<br>
<br>
<br>
__________ NOD32 1.1179 (20050727) Information __________<br>
<br>
This message was checked by NOD32 antivirus system.<br>
http://www.eset.com<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
This mail is send to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
http://mail.opencms.org/mailman/listinfo/opencms-dev<br>
</tt></font>
<br>