Puneet:
> Could anybody show me some example showing usage of <i18n:formatDate tag.
>
> Currently, I'm using something like this in my JSP, but its not printing
> anything.
>
> <i18n:formatDate value=<%=new Date()%> pattern="MM/dd/yyyy"/>
Have you considered using the new formatting tags that
are part of the JSP Standard Tag Library (JSTL)?
(See Tim Dawson's attached email about migrating from
the i18n taglib to the formatting tags in JSTL.)
The JSTL RI (Beta 1) is available at
http://jakarta.apache.org/builds/jakarta-taglibs/releases/standard/
You can read the JSTL public draft at
http://jcp.org/aboutJava/communityprocess/review/jsr052
Community feedback is still actively sought. You can mail comments to
[EMAIL PROTECTED]
Now to answer your question from a JSTL perspective:
Try using
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/ea/fmt" %>
<fmt:formatDate pattern="MM/dd/yyyy"/>
Hope this helps.
Jan
--- Begin Message ---
The i18n taglib will be mostly replaced by tags in the standard taglib. I
was able to provide some input into the shape of the i18n components of the
standard taglib. At this point, I'll personally be migrating my own projects
to the standard taglib and I expect most everybody else will do so as well.
The question is: how do we want to go about doing deprecating this taglib
and others that are similarly being obsoleted? Clearly the tags need to
still be built and supported for JSP 1.1 users, but we need to make sure
they are clearly deprecated so that future users go to the standard taglib
equivalents.
Mostly I'd think this would be done with documentation, on the website, in
the tld, in the code, etc. We'd need a standard message for consistency in
pointing users to the new location of the standard taglib. We should also
probably show some examples of old tag/new tag use cases. I know the i18n
formatting tags have definately changed in places, and a few of the i18n
tags aren't being replicated in the standard taglib due to lack of use.
We could actually move the source in the cvs tree but that feels like
overkill.
Thoughts?
Tim
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--- End Message ---
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>