Hi Colm, If you check your generated java, see %TOMCAT_HOME%\work\..., I think you'll find that your <xsp:logic> is generated high in the code, i.e. outside the code generated for the query, and so only gets activated once. Leave the <include> where it is, but move the <xsp:logic> down into your <esql:execute-query> if you want it updated for each query!
HTH Perry -----Original Message----- From: Colm O'Riordan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 12 December 2001 13:25 To: [EMAIL PROTECTED] Subject: System Date, XSP, includes and Cacheing. 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]> --------------------------------------------------------------------- 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]>