Thanks Jan,
But I'm using weblogic 5.1, which supports JSP 1.1 spec.
Could anybody confirm if it would be okay to use JSTL / "standard taglib"
with weblogic 5.1 container?

I solved my problem by using "datetime" taglibs, like this:
<dt:format pattern="MM/dd/yyyy" date="<%=tsDatePosted%>"></dt:format>

Thanks & Regards, 
-- Puneet Maini 



-----Original Message-----
From: Jan Luehe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:33 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: <i18n:formatDate...tag example


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
This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. Any unauthorised review, use, disclosure, 
dissemination, forwarding, printing or copying of this email or any action taken in 
reliance on this e-mail is strictly prohibited and may be unlawful.
Visit us at http://www.cognizant.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to