cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Pietschmann" <dev.sen...@gmail.com>
Subject resource vs. action-set
Date Fri, 22 Jul 2005 12:18:41 GMT
Hi there,

 

today's question: So far I have a resource containing some actions which is
called at the beginning of one matcher. Those actions process information
from the request. This works fine, but I recently ran into action-sets and
thought "oh well, it's a resource which only contains actions, so it should
be an action-set, right?". So basically I replaced the resource with an
action-set and it doesn't work anymore.

 

<map:action-sets>

<map:action-set name="generateModel">

            <map:act type="auth-protect">

                        <map:parameter name="handler"
value="portalhandler"/>

                        <map:act type="updateModel">.</map:act>

                        <map:act type="trainCDL4">.</map:act>

                        <map:act type="writeModel">.</map:act>

</map:act>

</map:action-set>

</map:action-sets>

<map:resources>

<map:resource name="generateModel">

<map:act type="auth-protect">

                        <map:parameter name="handler"
value="portalhandler"/>

                        <map:act type="updateModel">..</map:act>

                        <map:act type="trainCDL4">.</map:act>

                        <map:act type="writeModel">.</map:act>

            </map:act>

</map:resource>

</map:resources>

 

 

</snip>

 

<map:match pattern="*/**.ama">

<!- this one works: -->

<!- <map:call resource="generateModel"/>-->

<!- this one doesn't -->

            <map:act set="generateModel"/>

            ..

</map:match>

 

(I left out the parameters for the actions.)

 

Why doesn't the first one work?

Do I misunderstand the concept of action-sets? Or is there a difference in
obtaining the request object or a problem with the authentication?

 

Thanx,

Stefan


Mime
View raw message