Hi, 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) { System.out.println("Yo"); } } My XSP in Folder: .../cocoon/jonny/xsp : <?xml version="1.0" encoding="ISO-8859-1"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp"> <xsp:structure> <xsp:include> <!-- Meine Klasse "execute_report" --></xsp:include> </xsp:structure> <results> <xsp:logic> String hello = null; hello = get_g(); <option> <xsp:logic> <xsp:attribute name="bla">hello</xsp:attribute> </xsp:logic> </option> </xsp:logic> </results> </xsp:page> 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. Thanks Jonny ---------------------------------------------------------------------------------------------------- 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 information 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. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>