other solution for your problem:
throw an exception in your action. you can catch this exception in your
error handler like this:
<map:pipelines>
<map:pipeline>
<map:handle-errors>
<map:generate type="notifying"/>
<map:transform type="log">
<map:parameter name="logfile" value="WEB-INF/logs/error.log" />
<map:parameter name="append" value="no"/>
</map:transform>
<map:select type="exception">
<map:when test="ticket">
<map:transform src="context://stylesheets/error.xsl">
<map:parameter name="ErrorCode" value="ticket" />
</map:transform>
</map:when>
<map:when test="doctype">
<map:transform src="context://stylesheets/error.xsl">
<map:parameter name="ErrorCode" value="doctype" />
</map:transform>
</map:when>
<map:otherwise>
<map:transform src="context://stylesheets/error.xsl">
<map:parameter name="ErrorCode" value="general" />
</map:transform>
</map:otherwise>
</map:select>
<map:serialize type="text"/>
</map:handle-errors>
<map:pipeline>
<map:pipelines>
and you need a exception selector like this:
<map:selector name="exception"
src="org.apache.cocoon.selection.ExceptionSelector">
<exception name="ticket"
class="ch.advanceit.igb2b.cocoon.exceptions.TicketException"/>
<exception name="doctype"
class="ch.advanceit.igb2b.cocoon.exceptions.DoctypeException"/>
</map:selector>
-----Original Message-----
From: Gary Larsen <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: RE: Sendmail Action return parameters
Date: Mon, 25 Feb 2008 06:24:26 -0500
Thanks!
gary
> The following sitemap fragment demonstrates how you can access the
> return parameter status of the sendmail action:
>
> <map:act type="sendmail">
> <map:parameter name="smtp-host" value="mail.example.com" />
> ...
>
> <map:generate src="{status}.xml"/>
> </map:act>
>
> Alex
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
________________________________________________________________________
advanceIT GmbH
Galgenholzstrasse 35
8500 Frauenfeld
Switzerland
Phone: +41 52 721 48 88
Fax: +41 52 721 48 90
Mobile: +41 78 768 02 14
________________________________________________________________________
CONFIDENTIALITY NOTICE
The information contained in this e-mail message is intended only for
the exclusive use of the individual or entity named above and may
contain information that is privileged, confidential or exempt from
disclosure under applicable law. If the reader of this message is not
the intended recipient, or the employee or agent responsible for
delivery of the message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please notify the sender immediately by e-mail
and delete the material from any computer.
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]