i18n:formatDate...tag example

2002-04-03 Thread Maini, Puneet (Cognizant)

Hi All,
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//

Thanks  Regards, 
-- Puneet Maini


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]


Re: i18n:formatDate...tag example

2002-04-03 Thread Jan Luehe

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//

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//

Hope this helps.


Jan

---BeginMessage---

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]


RE: i18n:formatDate...tag example

2002-04-03 Thread Maini, Puneet (Cognizant)

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/ 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//

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//

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]