Hi All,

I am extracting the system date using

<xsp:structure>
<xsp:include>java.text.SimpleDateFormat</xsp:include>
</xsp:structure>
<xsp:logic>
Date getDay = new Date();
SimpleDateFormat dayformatter = new SimpleDateFormat("EEEE");
SimpleDateFormat timeformatter = new SimpleDateFormat("hh:mm:ss");
SimpleDateFormat dateformatter = new SimpleDateFormat("yyyy/mm/dd");
</xsp:logic>

I am passing this time/date in as parameters into an esql query.
However the time does not update and so the query brings back out of
date information every time.
On viewing just the time returned by the function it gets the right time
first time, but does not change it.
I am using cocoon 1.8 and have uncommented the line in the
cocoon.properties to disable all caching.
I need to include this bit of functionality in every screen on the site
(docref wont do this for me).

Can anyone suggest where I might be going wrong here ? I am rapidly
seeing a case for upgrading to Cocoon 2 but thats not going to be happen
for this release.


The XSP is embedded in a file with an .XML extension.

Thanks in advance,

ColmOR.


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to