Leszek
 
Thanks for the detailed suggestion; I was hoping to avoid 
having to do any Java coding & was hoping there might
be a more "standard" way of doing this .... if not, where 
is the best place to start learning how to code such a 
beast (the website has this page:
http://cocoon.apache.org/2.1/userdocs/concepts/actions.html 
which seems a little "rough" round the edges)?
 
Thanks
Derek

>>> [EMAIL PROTECTED] 2005/09/27 09:20:00 AM >>>
Derek Hohls wrote:
> Is it possible to configure a match pattern to *not* 
> return a page; i.e. I would like to make a call that
> will only set a variable (e.g. session value) - most
> probably via Javascript call in a certain page; the
> script should then continue to run & any or may
> not make another Cocoon call to display the actual
> page.
> 
> I think this might be possible with flow script, but I
> have the impression flow must end with a call to
> a sendPage function?
You are right. Flow mandates the used of cocoon.sendPage*.

One quick solution though: Implement an action and then:


<map:actions>
<map:action src="o.a.c.acting.MyAction" name="myaction"/>
</map:actions>

<.../>

<map:pipeline>
<map:act type="myaction"/>
<map:match .../>
<map:match .../>
</map:pipeline>

myaction will be called before every match so it works much like a 
function call (no pipeline side effects). If you want your matches to 
work only if action succeed do it like this:

<map:pipeline>
<map:act type="myaction">
<map:match .../>
<map:match .../>
</map:act>
<map:match ...when action failed.../>
</map:pipeline>

-- 
Leszek Gawron [EMAIL PROTECTED] 
IT Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl 
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 




-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
[EMAIL PROTECTED]


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to