Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 41590 invoked by uid 500); 16 Aug 2002 15:53:00 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 41579 invoked from network); 16 Aug 2002 15:52:59 -0000 Message-ID: <85063BBE668FD411944400D0B744267A0186397F@ausmail.core.coremetrics.com> From: "Lai, Harry" To: "'cocoon-users@xml.apache.org'" Subject: RE: XSP Java Class Include Date: Fri, 16 Aug 2002 10:52:39 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Brian, I'm not totally sure if this is the cause of your problem, but make sure your xsp:structure element is inside your xsp:page element, but outside your content element. So for example: org.my.custom.Class ... Anyway, hope that helps! Harry -----Original Message----- From: Brian Schwark [mailto:bschwark@aci-hq.com] Sent: Friday, August 16, 2002 10:27 AM To: cocoon-users@xml.apache.org Subject: XSP Java Class Include Hello, I'm new to Cocoon, trying to work my way through the documentation. So far, I've been able to get most things to work satisfactorily enough, however I've run into a roadblock while trying to implement XSPs. So far, I've written a quick and dirty example, of which all I want to do is import a custom class and call a function from that class. From what I understand in the documentation, to import a custom class all I need to do after the appropriate .jar file containing the class into the cocoon/web-inf/lib directory is to include the following tag in my XSP, (or XSL? Can someone clarify this please? The documentation is sketchy and I have seen examples using either method. Are both kosher?): org.my.custom.Class However, when the file is serialized, Cocoon merely spits out the text between the tags, as if it hasn't even recognized that as a parameter. If I try to call a function from that class in a tag, cocoon dies with an error explaining that it can't find the class. I'm understandably confused at this point, as all the examples I've looked at seem to show that including the class is as trivial as using the above mentioned structure tag. For redundancy (or lack of a better idea), the class has also been added as an additional classs in the web.xml file inside the web-inf directory. The logic in my XSP is working, as I'm able to call java.util classes without a problem. Thanks in advance for any insight, Brian Schwark bschwark@aci-hq.com --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: