Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 35661 invoked from network); 3 Jan 2001 22:36:20 -0000 Received: from fw.infoplanning.net (HELO infoplanning.com) (@209.8.58.131) by h31.sny.collab.net with SMTP; 3 Jan 2001 22:36:20 -0000 Received: (qmail 21128 invoked from network); 3 Jan 2001 22:15:17 -0000 Received: from unknown (HELO apache.org) (192.168.0.189) by inet with SMTP; 3 Jan 2001 22:15:16 -0000 Message-ID: <3A53A22C.1000404@apache.org> Date: Wed, 03 Jan 2001 17:05:32 -0500 From: Berin Loritsch User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 0.6) Gecko/20001205 X-Accept-Language: en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: How can I use my own java classes? References: <3A5321FB.706BC1AD@atmiralis.de> <3A53184B.F082344F@pixelpark.com> <5.0.2.1.2.20010103143143.02158e50@moonlight.kdnet.de> <5.0.2.1.2.20010103215355.01c36150@moonlight.kdnet.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Klaus Drechsler wrote: > Hi, > >> Add them to the classloader (which is usually the >> /WEB-INF/classes directory). > > > I am using T4-m5 and C2 and ther is no /webapps/cocoon/WEB-INF/classes > directory. > > Should I create it? > > And how do I use these java classes? Yes, create it. If you have a jar with your own classes, then place it in the /webapps/cocoon/WEB-INF/lib directory with all the other Cocoon jars. To use the classes in XSP, you simply need to add this directly after your xsp:page tag: fully.qualified.class.name You can now instantiate and manipulate all of your included classes inside of xsp:logic tags.