<xsp:page
language="java"
xmlns:xsp="http://apache.org/xsp">
<xsp:structure>
<xsp:include>java.util.Date</xsp:include>
<xsp:include>java.util.GregorianCalendar</xsp:include>
<xsp:include>java.text.SimpleDateFormat</xsp:include>
</xsp:structure>
<page>
<xsp:logic>
GregorianCalendar thiscalendar = new GregorianCalendar();
SimpleDateFormat sdf = new SimpleDateFormat ("dd-MM-yy HH:mm");
String systemdate = sdf.format(thiscalendar.getTime());
</xsp:logic>
</page>
</xsp:page>
-----Original Message-----
From: John L. Webber [mailto:[EMAIL PROTECTED]
Sent: 26mm2004 12:10
To: [EMAIL PROTECTED]
Subject: Re: Java code in xsp page
You might check the following page in the Cocoon Wiki - it should answer
your questions:
http://wiki.cocoondev.org/Wiki.jsp?page=XSP
Oro smith wrote:
> How can i include java code in xsp page ?
>
> Does cocoon webmail recognise classes like Address,Message which are
present in the javax.mail.* package ? Can i include these classes within the
xsp code?
>
> How can strings be displayed in xsp ?
>
> thank you.
> Smith
--
---------------------------------------------------------
Jentro Technologies GmbH
John L. Webber, Software Development
---------------------------------------------------------
Rosenheimer Str. 145e 81671 M�nchen
Tel. +49 89 189 169 80 mailto:[EMAIL PROTECTED]
Fax +49 89 189 169 99 http://www.jentro.com
---------------------------------------------------------
NOTICE: The information contained in this e-mail is confidential or may
otherwise be legally privileged. It is intended for the named recipient
only. If you have received it in error, please notify us immediately by
reply or by calling the telephone number above and delete this message
and all its attachments without any use or further distribution of its
contents. Please note that any unauthorised review, copying, disclosing
or otherwise making use of the information is strictly prohibited. Thank
you.
---------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]