You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Luca Marchetti <co...@marchetti.eu.org> on 2003/02/28 12:37:14 UTC

Calling a resource from xsp or....

Hi all

I have this problem:
   after authentication (actually done with SunRise/Spot/etc etc) I must save 
some user data in session. I don't want to use SunSpot sessin. I use a 
writeDOMsession transformer.

So, I have a Pipeline for saving data in session:

------
<map:match pattern="internals/loaduser/*">
  <map:generate src="users/invernet-user.xml"/>
  <map:transform src="stylesheets/loaduser.xsl">
    <map:parameter name="username" value="{1}"/>
  </map:transform>
  <map:transform type="cinclude"/>
  <map:transform type="writeDOMsession">
    <map:parameter name="dom-name" value="prefs"/>
    <map:parameter name="dom-root-element" value="invernet"/>
  </map:transform>
  <map:serialize type="xml"/>
</map:match>
------

My flow must be:
authentication > saveinsession > jump to home

so what's the problem? 
Simply if I do something like
<map:generate src="cocoon:/internals/loaduser/{1}"/>
<map:redirect-to uri="home"/>
generator seems to be ignored.
How can I do? can I call a uri from xsp and obtain sax events? can I redirect 
to an uri directly from jsp?
Is there another method?

thanks in advice,

--------------
Luca Marchetti

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org