Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 79236 invoked by uid 500); 24 Nov 2002 12:10:46 -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 79225 invoked from network); 24 Nov 2002 12:10:45 -0000 Message-ID: <024f01c293b2$827395b0$51b088d9@Rivendell> From: "Litrik De Roy" To: References: <20021123042036.73438.qmail@web40809.mail.yahoo.com> Subject: Re: total action confusion Date: Sun, 24 Nov 2002 12:45:52 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N There is a page in the Wiki that explains how to write an action using XSP : http://outerthought.net/wiki/Wiki.jsp?page=XSPAction Litrik De Roy www.litrik.com ----- Original Message ----- From: "Geoff Howard" To: Sent: Saturday, November 23, 2002 5:20 AM Subject: Re: total action confusion > It sounds like you're talking about using xsp to > create actions, which I haven't done. However, there > seem to be enough mingled concepts in your questions > that perhaps straightening those out will be all you > need: > > --- Robert_S�semann wrote: > > Does anybody have "good" and detailed examples about > > how to use actions > > _use_ or _write_ actions? using them is demonstrated > all over the examples. writing them in java and using > them is explained pretty well at > http://xml.apache.org/cocoon/userdocs/concepts/actions.html > > > for > > those newbies, that used xsp before. > while you can use xsp and the action logicsheet to > write actions (or so I understand) I'd recommend > getting straight on how to do it the old fashioned way > first. Actions are one of the easiest custom > components to write in cocoon (only one method in the > interface). > > > > > What i don't know is: > > > > where to place my java code that cocoon finds and > > compiles it. > > When? At build time? I'm not sure but I think > anything under the src/java directory gets compiled. > You don't need to do that, though. You only need a > few jars on the classpath (cocoon and avalon > framework) what they're called exactly depends on what > version you have. But if you've been trying this as > an xsp, then what java files? > > > how to use sitemap parameters inside the action > Do you mean how to get at the parameters inside the > tag? (you use the > org.apache.avalon.framework.parameters.Parameters > reference passed in to the act method)or how to return > the results of your action to the sitemap (you simply > place them in a HashMap as key-value pairs and return > the HashMap from the act method)? > > > where to place paramters - inside generate or act > huh? no generate in an action. what do you mean > place? > > > what the difference is between > > xsp-request:get-parameter and > this looks up the named parameter from the request > object - meaning it came in from a GET or POST > > > parameters.getParameter(... > this uses the parameters reference passed to act to > get at name="myParam>value see > above. > > > > > Since I changed xsp to action I have nothing but > > trouble especially that > Do you mean you had a generator written in xsp that > now you are trying to rework as an action using the > action logicsheet? > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.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: