You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Phil Blake <ph...@tcp.net.au> on 2001/10/16 06:16:15 UTC

import (using other classes not included by XSP)

Hiya,

In a simple example I want to format a date using SimpleDateFormat.

Here's the logic.
<xsp:logic>
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy.MM.dd 
G 'at' hh:mm:ss a zzz");
  		Date currentDate = new Date();
  		String dateString = formatter.format(currentDate);
</xsp:logic>
However the XSP generated java page does not have an import for 
java.text.*

What is the recommended way of adding classes (import statements) to XSP 
generated java classes?

Thanks,

Phil

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>