cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Reyes" <rich...@voxsant.com>
Subject Re: SunRise - Valid User Data
Date Wed, 25 Sep 2002 00:38:37 GMT
Thanks, I'll check it out.

FYI, I'm using binary released C2.0.3 for sdk 1.3...

----- Original Message -----
From: "Carsten Ziegeler" <cziegeler@s-und-n.de>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, September 24, 2002 2:38 AM
Subject: RE: SunRise - Valid User Data


> No, I meant the session transformer:
> <map:transformer name="session" ...."/>
>
> but this transformer only exists in 2.1-dev. I see you use
> 2.0.x. It's called "sunShine" transformer there.
>
> Apart from the name your pipeline is ok.
>
> Carsten
>
> -----Original Message-----
> From: Richard Reyes [mailto:richard@voxsant.com]
> Sent: Wednesday, September 25, 2002 2:26 AM
> To: C2 Users
> Subject: Re: SunRise - Valid User Data
>
>
> Hi Carsten,
>
> Just to confirm, when you say "and put the session transformer behind your
> generator.". You mean the
> <map:transformer logger="sitemap.transformer.readDOMsession"
> name="readDOMsession"
> src="org.apache.cocoon.transformation.ReadDOMSessionTransformer"/>
>
> And it should be coded like this...
>
> <map:match pattern="foo-protected">
>                 <map:act type="sunRise-auth">
>                     <map:parameter name="handler" value="foo-handler"/>
>                     <map:generate src="foo-resource.xml"/>
>                     <map:transform type="readDOMsession" />
>                 </map:act>
>
>                 <map:transform src = "foo-resource.xsl"/>
>                 <map:serialize />
>                 <!--
>                 <map:serialize type="xml" />
>                 -->
> </map:match>
>
> Thanks
> Richard
>
>
>
>
> ----- Original Message -----
> From: "Richard Reyes" <richard@voxsant.com>
> To: <cocoon-users@xml.apache.org>
> Sent: Tuesday, September 24, 2002 4:43 PM
> Subject: Re: SunRise - Valid User Data
>
>
> > Thanks.
> >
> > ----- Original Message -----
> > From: "Carsten Ziegeler" <cziegeler@s-und-n.de>
> > To: <cocoon-users@xml.apache.org>
> > Sent: Tuesday, September 24, 2002 1:37 AM
> > Subject: RE: SunRise - Valid User Data
> >
> >
> > > You will find the namespace for session:getxml in the documentation
> > > (I have to look it up, too) You can put the element in your
> > > foo-resource.xml and put the session transformer behind your
> > > generator.
> > >
> > > Carsten
> > >
> > > > -----Original Message-----
> > > > From: Richard Reyes [mailto:richard@voxsant.com]
> > > > Sent: Wednesday, September 25, 2002 1:01 AM
> > > > To: cocoon-users@xml.apache.org
> > > > Subject: Re: SunRise - Valid User Data
> > > >
> > > >
> > > > Thanks for the prompt reply!!!
> > > >
> > > > But where would I put these codes I only got  foo-resource.xml and
> > > > foo-resource.xsl files.
> > > > Can I put them in the xsl file?
> > > > How about the session:getxml namespace?
> > > >
> > > > Thanks Again.
> > > >
> > > > ----- Original Message -----
> > > > From: "Carsten Ziegeler" <cziegeler@s-und-n.de>
> > > > To: <cocoon-users@xml.apache.org>
> > > > Sent: Tuesday, September 24, 2002 12:58 AM
> > > > Subject: RE: SunRise - Valid User Data
> > > >
> > > >
> > > > > Yes,
> > > > >
> > > > > to get the information of your user data, you can use the session
> > > > > transformer
> > > > > and some commands like these:
> > > > >
> > > > >             <session:getxml context="authentication"
> > > > > path="/authentication/ID"/>
> > > > >
> > > > > With the above you get the ID of the user. Try a
> > > > >
> > > > >             <session:getxml context="authentication" path="/"/>
> > > > >
> > > > > and you see all the information stored for the user.
> > > > >
> > > > > Carsten
> > > > >
> > > > > -----Original Message-----
> > > > > From: Richard Reyes [mailto:richard@voxsant.com]
> > > > > Sent: Wednesday, September 25, 2002 12:48 AM
> > > > > To: C2 Users
> > > > > Subject: SunRise - Valid User Data
> > > > >
> > > > >
> > > > > Hi Guys,
> > > > >
> > > > > I am following Matthew Langham's samples on the Sunrise components
(
> > > > >
> > > > http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunris
> > > eComponent
> > > > s.html ). I am quite sure that I have been able to configure it
> > correctly.
> > > > The question is how can I access the user data ( located at
> > foo-user.xml )
> > > > after the user was authenticated?
> > > > Will I need to use codes like these..
> > > >
> > > >             <session:getxml context="authentication"
> > > > path="/authentication/ID"/>
> > > >
> > > >
> > > > Below are some snippets from my sitemaps, I have been able to
display
> > the
> > > > content of foo-resource.xml and along with it Ialso  want to display
> the
> > > > data in foo-user.xml
> > > >
> > > >             <map:match pattern="foo-protected">
> > > >                 <map:act type="sunRise-auth">
> > > >                     <map:parameter name="handler"
> value="foo-handler"/>
> > > >                     <map:generate src="foo-resource.xml"/>
> > > >                 </map:act>
> > > >                 <map:transform src = "foo-resource.xsl"/>
> > > >                 <map:serialize />
> > > >             </map:match>
> > > >
> > > >             <map:match pattern="foo-authuser">
> > > >                 <map:generate src="foo-user.xml" />
> > > >                 <map:transform src="foo-user.xsl">
> > > >                     <map:parameter name="use-request-parameters"
> > > > value="true" />
> > > >                 </map:transform>
> > > >                 <map:serialize type = "xml" />
> > > >             </map:match>
> > > >
> > > > Thanks
> > > > Richard
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > Please check that your question  has not already been answered in
the
> > > > FAQ before posting.
<http://xml.apache.org/cocoon/faq/index.html>
> > > >
> > > > To unsubscribe, e-mail:
<cocoon-users-unsubscribe@xml.apache.org>
> > > > For additional commands, e-mail:
<cocoon-users-help@xml.apache.org>
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > Please check that your question  has not already been answered in the
> > > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> > >
> > > To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> > > For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > Please check that your question  has not already been answered in the
> > > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> > >
> > > To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> > > For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> > >
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question  has not already been answered in the
> > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> >
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>
>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message