<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:sans-serif;
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
tt
{font-family:"Courier New";}
span.EstiloCorreo19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=ES link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Hi all,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>You can find i18n taglib
and much more under the <st1:City w:st="on"><st1:place w:st="on">jakarta</st1:place></st1:City>
taglib distribution.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>As Sebastian says you can
also use fmt. They are quite similar and depending on cases I use the first or
the second one.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Borja Marcos Suárez<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-GB
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>De:</span></font></b><font
size=2 face=Tahoma><span lang=EN-GB style='font-size:10.0pt;font-family:Tahoma'>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounce</span></font><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>s@opencms.org]
<b><span style='font-weight:bold'>En nombre de </span></b>Stefan Uldum Grinsted<br>
<b><span style='font-weight:bold'>Enviado el:</span></b> viernes, 29 de julio
de 2005 9:50<br>
<b><span style='font-weight:bold'>Para:</span></b> <st1:PersonName w:st="on">The
<st1:PersonName ProductID="OpenCms mailing list" w:st="on">OpenCms mailing
list</st1:PersonName></st1:PersonName><br>
<b><span style='font-weight:bold'>Asunto:</span></b> Re: [opencms-dev]
ContentShow: DateTime</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><font size=2 face=sans-serif><span style='font-size:10.0pt;
font-family:sans-serif'>Hello Sebastian</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>I'm
not familiar with the taglib you speak of either, but I use the JSTL format
taglib:</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><%@
taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"
%></span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><c:set
var="dateString"></span></font> <br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>
<cms:contentshow element="Date" /></span></font>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'></c:set></span></font>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><%</span></font>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>
java.util.Date date = new java.util.Date();</span></font> <br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>
date.setTime(Long.parseLong(pageContext.getAttribute("dateString").toString()));</span></font>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>
pageContext.setAttribute("date", date);</span></font>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>%></span></font>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><fmt:formatDate
value="${date}" type="date" dateStyle="long" /></span></font>
<br>
<br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family: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.</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>You
can see documentation for the taglib here:</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html</span></font>
<br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><br>
Best Regards<br>
Stefan Uldum Grinsted<br>
---------------------------------<br>
Par No 1 Interactive a|s<br>
sug@interactive.as<br>
</span></font><br>
<br>
<o:p></o:p></p>
<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
style='width:100.0%'>
<tr>
<td width="40%" valign=top style='width:40.0%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><b><font size=1 face=sans-serif><span style='font-size:
7.5pt;font-family:sans-serif;font-weight:bold'>"Sebastian Lavena"
<slavena@mkti.com.ar></span></font></b><font size=1 face=sans-serif><span
style='font-size:7.5pt;font-family:sans-serif'> </span></font><br>
<font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Sent
by: opencms-dev-bounces@opencms.org</span></font> <o:p></o:p></p>
<p><font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:
sans-serif'>28-07-2005 14:00</span></font> <o:p></o:p></p>
<table class=MsoNormalTable border=1 cellpadding=0>
<tr>
<td valign=top bgcolor=white style='background:white;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><font size=1
face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Please
respond to<br>
<st1:PersonName w:st="on">The <st1:PersonName ProductID="OpenCms mailing list"
w:st="on">OpenCms mailing list</st1:PersonName></st1:PersonName>
<opencms-dev@opencms.org></span></font><o:p></o:p></p>
</td>
</tr>
</table>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p></o:p></span></font></p>
</td>
<td width="59%" valign=top style='width:59.0%;padding:.75pt .75pt .75pt .75pt'>
<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
style='width:100.0%'>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>To</span></font><o:p></o:p></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=1 face=sans-serif><span style='font-size:
7.5pt;font-family:sans-serif'>"<st1:PersonName w:st="on">The <st1:PersonName
ProductID="OpenCms mailing list" w:st="on">OpenCms mailing list</st1:PersonName></st1:PersonName>"
<opencms-dev@opencms.org></span></font> <o:p></o:p></p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>cc</span></font><o:p></o:p></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Subject</span></font><o:p></o:p></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=1 face=sans-serif><span style='font-size:
7.5pt;font-family:sans-serif'>Re: [opencms-dev] ContentShow: DateTime</span></font><o:p></o:p></p>
</td>
</tr>
</table>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<table class=MsoNormalTable border=0 cellpadding=0>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p></o:p></span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
<br>
</span></font><tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>I
couldn´t find the taglib "i18n-1.0", but with your code you give me
ideas, </span></font></tt><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">and I parse in "my way" the date, to
write it in my html in spanish format, </font></tt><br>
<tt><font face="Courier New">and 2 digit for day and month (i.e.: 30/05/05 and
not 30/5/05).</font></tt><br>
<br>
<tt><font face="Courier New">So, thanks, my problem is now solved. But I think
that´s probably the </font></tt><br>
<tt><font face="Courier New">library "i18n-1.0", can be helpful to me
in the future... any idea that´s </font></tt><br>
<tt><font face="Courier New">where I can find it..?</font></tt><br>
<br>
<tt><font face="Courier New">Best regards,</font></tt><br>
<br>
<tt><font face="Courier New">Sebastian</font></tt><br>
<br>
<br>
<tt><font face="Courier New">----- Original Message ----- </font></tt><br>
<tt><font face="Courier New">From: "<st1:PersonName w:st="on">Borja Marcos
Suarez</st1:PersonName>" <borja.suarez@fundacionctic.org></font></tt><br>
<tt><font face="Courier New">To: "<st1:PersonName w:st="on">The <st1:PersonName
ProductID="OpenCms mailing list" w:st="on">OpenCms mailing list</st1:PersonName></st1:PersonName>"
<opencms-dev@opencms.org></font></tt><br>
<tt><font face="Courier New">Sent: Thursday, July 28, 2005 3:06 AM</font></tt><br>
<tt><font face="Courier New">Subject: RE: [opencms-dev] ContentShow: DateTime</font></tt><br>
<br>
<br>
<tt><font face="Courier New">I think that the standard way to do it is using
the standard i18n as </font></tt><br>
<tt><font face="Courier New">follows:</font></tt><br>
<br>
<tt><font face="Courier New"><%@ taglib
uri="http://jakarta.apache.org/taglibs/i18n-1.0"
prefix="i18n" %></font></tt><br>
<tt><font face="Courier New"><cms:contentcheck
ifexists="YourDateElement"></font></tt><br>
<tt><font face="Courier New"><c:set
var="yourDate"><cms:contentshow
element="YourDateElement" /></c:set></font></tt><br>
<tt><font face="Courier New"><%</font></tt><br>
<tt><font face="Courier New">Date date= null;</font></tt><br>
<tt><font face="Courier New">try</font></tt><br>
<tt><font face="Courier New">{</font></tt><br>
<tt><font face="Courier New">date = new </font></tt><br>
<tt><font face="Courier New">Date(Long.parseLong((String)pageContext.getAttribute("yourDate")));</font></tt><br>
<tt><font face="Courier New">}</font></tt><br>
<tt><font face="Courier New">catch (Exception e)</font></tt><br>
<tt><font face="Courier New">{</font></tt><br>
<tt><font face="Courier New">out.println (e.getMessage());</font></tt><br>
<tt><font face="Courier New">}</font></tt><br>
<tt><font face="Courier New">%></font></tt><br>
<tt><font face="Courier New"><i18n:formatDate value='<%= date %>'
style="short" /></font></tt><br>
<tt><font face="Courier New"></cms:contentcheck></font></tt><br>
<br>
<tt><font face="Courier New">Hope this helps you,</font></tt><br>
<br>
<tt><font face="Courier New">Best regards</font></tt><br>
<br>
<st1:PersonName w:st="on"><tt><font face="Courier New">Borja Marcos Suarez</font></tt></st1:PersonName><br>
<br>
<br>
<tt><font face="Courier New">-----Mensaje original-----</font></tt><br>
<tt><font face="Courier New">De: opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] </font></tt><br>
<tt><font face="Courier New">En nombre de Sebastian Lavena</font></tt><br>
<tt><font face="Courier New">Enviado el: miércoles, 27 de julio de 2005 22:58</font></tt><br>
<tt><font face="Courier New">Para: <st1:PersonName w:st="on">The <st1:PersonName
ProductID="OpenCms mailing list" w:st="on">OpenCms mailing list</st1:PersonName></st1:PersonName></font></tt><br>
<tt><font face="Courier New">Asunto: [opencms-dev] ContentShow: DateTime</font></tt><br>
<br>
<tt><font face="Courier New">Hi list!</font></tt><br>
<br>
<tt><font face="Courier New">I'm trying to show a date (not time), in my web...</font></tt><br>
<tt><font face="Courier New">I have in an XML a DateTimeOpenCms, but if I use
"<cms:contentshow</font></tt><br>
<tt><font face="Courier New">element="DateTime" />", OpenCMS
writes in my html a large number (the</font></tt><br>
<tt><font face="Courier New">longint that´s represent the dateTime).</font></tt><br>
<br>
<tt><font face="Courier New">So, hoy I can write in my html (from jsp) only the
date that´s this number</font></tt><br>
<tt><font face="Courier New">represent?</font></tt><br>
<br>
<tt><font face="Courier New">Thanks you very much,</font></tt><br>
<br>
<tt><font face="Courier New">Sebastián</font></tt><br>
<br>
<br>
<br>
<tt><font face="Courier New">_______________________________________________</font></tt><br>
<tt><font face="Courier New">This mail is send to you from the opencms-dev
mailing list</font></tt><br>
<tt><font face="Courier New">To change your list options, or to unsubscribe
from the list, please visit</font></tt><br>
<tt><font face="Courier New">http://mail.opencms.org/mailman/listinfo/opencms-dev</font></tt><br>
<br>
<br>
<tt><font face="Courier New">_______________________________________________</font></tt><br>
<tt><font face="Courier New">This mail is send to you from the opencms-dev
mailing list</font></tt><br>
<tt><font face="Courier New">To change your list options, or to unsubscribe
from the list, please visit</font></tt><br>
<tt><font face="Courier New">http://mail.opencms.org/mailman/listinfo/opencms-dev</font></tt><br>
<br>
<br>
<tt><font face="Courier New">__________ NOD32 1.1179 (20050727) Information
__________</font></tt><br>
<br>
<tt><font face="Courier New">This message was checked by NOD32 antivirus
system.</font></tt><br>
<tt><font face="Courier New">http://www.eset.com</font></tt><br>
<br>
<br>
<br>
<br>
<tt><font face="Courier New">_______________________________________________</font></tt><br>
<tt><font face="Courier New">This mail is send to you from the opencms-dev
mailing list</font></tt><br>
<tt><font face="Courier New">To change your list options, or to unsubscribe
from the list, please visit</font></tt><br>
<tt><font face="Courier New">http://mail.opencms.org/mailman/listinfo/opencms-dev</font></tt></span></font><o:p></o:p></p>
</div>
</body>
</html>