cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Faulkner, Perry" <Perry.Faulk...@det.nsw.edu.au>
Subject RE: date-format in cocoon 1.8.2
Date Wed, 24 Oct 2001 21:54:33 GMT
Hi Christian,

These comments apply to Cocoon 2, but the generated java code checks for a
null value and returns "", otherwise it uses the SimpleDateFormat to convert
the date. You might look at your generated code to see if it is doing the
same thing. Maybe this was added for Cocoon 2. Anyway, if it isn't doing the
right thing, you can get hold of the stuff from 2 and put that into your
code, either add it to your esql.xsl or simply use <xsp:logic> in your xsp
file, within your <esql:row-results> to fetch the date, test for null and
format, as required, just like the Cocoon 2 code! Look at the esql.xsl and
there should be some esql samples that do this sort of thing.

HTH, regards

  Perry

-----Original Message-----
From: Schroeter Christian [mailto:Christian.Schroeter@nbg.sbs.de]
Sent: Wednesday, 24 October 2001 23:35
To: cocoon-users@xml.apache.org
Subject: Re: date-format in cocoon 1.8.2


Now if the value in the db is null then i get an error-message.

Without the format - attribute i wouldnt get it.

What must i change, and how?

cu,
Christian

Am Dienstag, 23. Oktober 2001 19:01 schrieben Sie:
> Specify the format attribute using a Java SimpleDateFormat string.  For
> instance,
> <esql:get-date column="..." format="MMM dd, yyyy"/>
>
> -Christopher
>
>
>
>
> Please respond to cocoon-users@xml.apache.org
>
> To:   cocoon-users@xml.apache.org
> cc:
>
> Subject:  date-format in cocoon 1.8.2
>
>
> Hi,
>
> what must i do to change the format of the date i get with
> <esql:get-date...>
>
> i am using cocoon1.8.2
>
> cu,
> christian
>
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message