DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9835>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9835

Nested actions in action-sets do not execute





------- Additional Comments From [EMAIL PROTECTED]  2002-09-12 11:22 -------
I have a close problem : I use nested actions but no action-sets, and the most 
nested action sends an email with attachments, after form validation.

If I hit the "back" button after sending the email, or browse to the URL again, 
sitemap parameters values I use for this action, instead of getting new values 
from request parameters, get as values new values plus old values...

The files I attach to the email are generated on disk the first time the form 
is submitted.

Piece of pipeline :

<!-- send license, req param : serialNumber -->
                        <map:match pattern="sendlicense">
                                <map:act type="request">
                                        <map:parameter name="parameters" 
value="true"/>
                                        <!-- authenticate as usual -->
                                        <map:act type="auth-protect">
                                                <map:parameter name="handler" 
value="baepp-handler"/>
                                                <!-- form has been submitted 
once so validate it -->
                                                <map:act type="request-exists">
                                                        <map:parameter 
name="parameters" value="submittedOnce"/>
                                                        <!-- form validation -->
                                                        <map:act type="form-
validator">
                                                                <map:parameter 
name="descriptor" value="xml/sendlicense_desc.xml"/>
                                                                <map:parameter 
name="validate-set" value="default"/>
                                                                <!-- ok so send 
mail -->
                                                                <map:act 
type="sendmail">
                                                                
        <map:parameter name="smtpHost" value="<snip>"/>
                                                                
        <map:parameter name="subject" value="{../../../subject}"/>
                                                                        <!-- to 
be changeable (port) -->
                                                                
        <map:parameter name="body" 
value="http://localhost:9090/baepp/licensekeys/
{../../../licensekey}/htmlbody.html"/>
                                                                
        <map:parameter name="emailTo" value="{../../../emailTo}"/>
                                                                
        <map:parameter name="emailCc" value="{../../../emailCc}"/>
                                                                
        <map:parameter name="emailFrom" value="{../../../emailFrom}"/>
                                                                
        <map:parameter name="nameFrom" value="{../../../nameFrom}"/>
                                                                
        <map:parameter name="dataSources" 
value="http://localhost:9090/baepp/images/links.gif;http://localhost:9090/baepp/
images/leer.gif;http://localhost:9090/baepp/images/logo_www.gif"/>
                                                                
        <map:parameter name="dsHeaders" value="abc@abc;abd@abc;abe@abc"/>
                                                                
        <map:parameter name="file" 
value="http://localhost:9090/baepp/licensekeys/{../../../licensekey}/
{../../../filename}.xml;http://localhost:9090/baepp/licensekeys/
{../../../licensekey}/{../../../filename}lt.pdf"/>
                                                                
        <map:parameter name="fileName" value="{../../../filename}.xml;
{../../../filename}lt.pdf"/>
                                                                
        <map:redirect-to uri="menu"/>
                                                                </map:act>
                                                                <map:redirect-
to uri="error?code=422303"/>
                                                        </map:act>
                                                        <!-- not ok : show 
input form -->
                                                        <map:aggregate 
element="page">
                                                                <map:part 
element="license" src="xmldb:tamino://server/tamino/BAEPP/BAEPP/#License_Info
[@serialNumber='{../../serialNumber}']"/>
                                                                <map:part 
element="mlform" src="cocoon://mlform"/>
                                                                <map:part 
element="session" src="xml/getxml.xml"/>
                                                        </map:aggregate>
                                                        <map:transform 
type="session"/>
                                                        <map:transform 
src="xsl/sendlickeyform.xsl">
                                                                <map:parameter 
name="use-request-parameters" value="true"/>
                                                                <map:parameter 
name="taminoUri" value="http://server/tamino/BAEPP/BAEPP"/>
                                                        </map:transform>
                                                        <map:transform 
type="simple-form"/>
                                                        <map:serialize 
type="html"/>
                                                </map:act>
                                                <!-- no form validation ever 
occured, show input form -->
                                                <map:aggregate element="page">
                                                        <map:part 
element="license" src="xmldb:tamino://server/tamino/BAEPP/BAEPP/#License_Info
[@serialNumber='{../serialNumber}']"/>
                                                        <map:part 
element="mlform" src="cocoon://mlform"/>
                                                        <!-- write license on 
disk -->
                                                        <map:part 
element="write" src="cocoon://writelicense?serialNumber={../serialNumber}"/>
                                                        <!-- write html body on 
disk -->
                                                        <map:part 
element="htmlbody" src="cocoon://writehtmlbody?serialNumber={../serialNumber}"/>
                                                        <map:part 
element="session" src="xml/getxml.xml"/>
                                                </map:aggregate>
                                                <map:transform type="session"/>
                                                <map:transform 
src="xsl/sendlickeyform.xsl">
                                                        <map:parameter 
name="taminoUri" value="http://server/tamino/BAEPP/BAEPP"/>
                                                        <map:parameter 
name="use-request-parameters" value="true"/>
                                                </map:transform>
                                                <map:transform type="simple-
form"/>
                                                <map:serialize type="html"/>
                                                <map:transform 
src="xsl/copy.xsl"/>
                                                <map:serialize type="xml"/>
                                        </map:act>
                                </map:act>
                        </map:match>

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

Reply via email to