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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]] > 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/usingTheSunriseComponent > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>