Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 99883 invoked by uid 500); 18 Aug 2002 15:47:19 -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 99858 invoked from network); 18 Aug 2002 15:47:19 -0000 Message-ID: <20020818154721.54681.qmail@web21408.mail.yahoo.com> Date: Sun, 18 Aug 2002 08:47:21 -0700 (PDT) From: Kenny Chow Subject: Re: Making a new Action To: cocoon-users@xml.apache.org In-Reply-To: <01a701c2468f$b95b47f0$c56e88d9@Rivendell> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Rather than writing actions in an xsp, I write actions in Cocoon way, in pure .java files. I found this approach is easier and more reusable; and the source has provided sufficient example actions that we can learn from. An alternative to Cocoon action could be logicsheets which I found somewhat encapulating but with a steeper learning curve. (you have to be familiar with XSL and mix it with Java code) One disadvantage I could think of about actions is once an action (either in jar or in classes) is modified, I have to restart the servlet engine for reload. --- Litrik De Roy wrote: > For my project I have used XSP to write actions. > > Advantages: > - The is no need to do manual compiles. Cocoon will > compile it when the > source has changed. > - The XSP can be stored in a location relative to a > subsitemap instead of > the WEB-INF directory. > > It took me a while to figure out how to do it > (almost no documentation and > only a few entires in the mailing list archive). > > If you need some help, let me know and I'll post a > summary. > > Litrik De Roy > www.litrik.com > > > ----- Original Message ----- > From: "Geoff Howard" > To: > Sent: Saturday, August 17, 2002 12:51 AM > Subject: RE: Making a new Action > > > > > > > Actions are java code which i write seperatly > from everything else. > > > > right. > > > > > Do i save this file as a.java or .jsp? > > > > .java, and then you compile it. > > > > > What directories do i have to place in into in > order for it to properly > > compile > > > > you can compile it from anywhere, but you need > your classpath set up to > > include anything mentioned in your .java file. > > > > > and for the sitemap to see it? > > > > after it's compiled, place it in WEB-INF/classes > (if you've used a package > > declaration, remember to duplicate the directory > structure of the > package). > > Alternatively you can jar it up with any other > classes you create and > place > > it in WEB-INF/lib > > > > > Does this compiling happen automatically or do i > have to do it manually? > > > > manually. > > > > Hope that helps, > > Geoff Howard > > > > > > --------------------------------------------------------------------- > Please check that your question has not already > been answered in the > FAQ before posting. > > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.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: