cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject <xsp:structure> - question
Date Wed, 15 Jan 2003 16:45:16 GMT

I want to include my own Java-Class in my XSP-Page

for example: " execute_report.class" :

class execute_report {

  public String get_g()
    String hello = "Hi there";
    return hello;

 public static void main(String[] args) {

My XSP in Folder: .../cocoon/jonny/xsp :

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java"

      <xsp:include> <!-- Meine Klasse "execute_report" --></xsp:include>

        String hello = null;
        hello = get_g();
               <xsp:attribute name="bla">hello</xsp:attribute>

Where do I have to place my Java-Class. Under .../cocoon/Web-Inf/classes
(where I hava placed it right now!)?
How do I call methods, like my method get_g()?

My approach doesn't work.



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message