cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robby.pelss...@vodafone.com
Subject RE: Java code in xsp page
Date Wed, 26 May 2004 10:16:00 GMT
<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:John.Webber@jentro.com]
Sent: 26mm2004 12:10
To: users@cocoon.apache.org
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:John.Webber@jentro.com
  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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org

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


Mime
View raw message