Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 5392 invoked by uid 500); 16 May 2002 16:05:20 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 5381 invoked from network); 16 May 2002 16:05:20 -0000 From: "Artur Bialecki" To: Subject: RE: Action XSP Date: Thu, 16 May 2002 12:04:19 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <008101c1fcec$06f3b1c0$6150000a@flagship.ru> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: Konstantin Piroumian [mailto:kpiroumian@apache.org] > > > From: "Artur Bialecki" > > > > > Actions are great, however it would be nice If > > I could dynamically create them with XSP so in > > my sitemap I have: > > > name="my-action" > > src="/actions/my-action.xsp" > > logger="action.my-action" > > /> > > > > Where my-action.xsp gets trasfomed to java using > > some action.xsl, builtin and custom logicsheets. > > > > Cocoon already has everything I need other than the > > action.xsl. > > Are you looking for this: > xml-cocoon2\src\java\org\apache\cocoon\components\language\markup\xsp\java\a > ction.xsl ? > Yes (I think so), thanks. > > > > How would I go about adding this functionality? > > Where do I start? > > May I ask a question? Why do you need an XSP based action? IMHO, actions > should be pure Java classes that perform some programmatic logic and you > have Generators for XML generation, based on the result from actions. > > Are there any real use-cases? > I use cocoon to provide a GUI for large enterprise application, so there are lots of forms, lots of logic, lots of error checking which means lots of redirects. When proting from C1 I found that I need lots of custom actions. Also, our GUI masters who know XSL very well (but no deep Java knowledge) found that is easy to do logic they need using builtin and custom taglibs I provided. This way they can control the complex navigation themselves without wasting time taking to me and waiting for me to write java logic for them. I also like the shorten development cycle since I can quicky test my actions on a live system without the recompile/redeploy/restart (iAS needs restarting) cycle. So I don't want generate XML in my actions. I want to control flow based on business logic provided by my ejbs. I'm also looking into writing custom matches/selectors for this purpose. One last reason is that we let our customers write their own custom interfaces. It's a lot easier to tell them: Copy and modify given action xsp, update your site map and you're done. Artur... --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org