You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ivan Rubin Ayma <Ia...@mcsla.com.ar> on 2002/02/22 23:57:34 UTC
ReadWriteDOMsession
Hello,
I have a login page. The form points to a do-login pipeline
I want do-login to authenticate the user through an action, that's ok,
and then generate an XML with a menu, write a DOM on the session and go
to the main pipeline.
The main pipeline, in between a number of things, reads the dom from the
session and makes use of it.
The problem:
<map:match pattern="do-login">
<map:act type="login"/>
<map:act type="session-validator">
<map:generate type="zeus-menu-generator"/>
<map:transform type="writeDOMsession">
<map:parameter name="dom-name" value="menu"/>
<map:parameter name="dom-root-element" value="menu"/>
</map:transform>
<!--I Have to redirect here to the main pipeline!
If I user map:redirect-to, the writeDOMsession transformer is discarded.
What can I do for writing that DOM to the session and redirecting to the
main pipeline? -->
</map:act>
<map:redirect-to uri="login"/>
</map:match>
<map:match pattern="main">
</map:match>
Thanks,
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>