Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 7217 invoked by uid 500); 26 Sep 2002 09:46:19 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 7204 invoked from network); 26 Sep 2002 09:46:18 -0000 Content-Type: text/plain; charset="us-ascii" From: Antonio Gallardo Rivera Organization: AG Software, S. A. To: cocoon-users@xml.apache.org Subject: Date: Thu, 26 Sep 2002 03:50:30 -0600 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200209260350.30154.agallardo@agsoftware.dnsalias.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I will try to explain how far I am now in the building of the=20 for XSP. As I said I was researching about that, now I can get the values of the=20 "authentication" context. In XSP we can use: Namespace: xmlns:xsp-session=3D"http://apache.org/xsp/session/2.0" 2-Add imports: org.apache.cocoon.webapps.session.context.SimpleSessionConte= xt org.w3c.dom.DocumentFragment org.apache.cocoon.xml.dom.DOMUtil 3- Logic inside the xsp:page: SimpleSessionContext a =3D=20 ((SimpleSessionContext)); DocumentFragment b =3D a.getXML("/"); String d =3D DOMUtil.createText(b); Only for test I used, and it gets the values I need. b After it returns I saw in the generated HTML that there is only one conte= xt. 1 myrole =09My name =09 =09..... I am also researching about how to get the authentication context because= =20 there are two attributes and the name of the handler can be diferent as l= ong=20 as I know. Then: A) adding imports java.util.ArrayList java.util.HashMap B) ArrayList al =3D=20 ((ArrayList)); String al0 =3D ((String)al.get(0)); String al1 =3D ((String)al.get(1));oot node, does anyone know how HashMap hs =3D ((HashMap)); With al. I can make use of the attributesnames of the session, after that= I=20 can get the names using the variables al0 and al1. al0 is org.apache.cocoon.webapps.authentication.Handlers and al1 is org.apache.cocoon.webapps.authentication.SessionContext About al1 is above a litlle explain that can helps to get directly the=20 authentication ID using the Strings: SimpleSessionContext a =3D=20 ((SimpleSessionContext)); DocumentFragment b =3D a.getXML("/myhandler/authentication/ID"); After this, the variable b has the value of "/authentication/ID". About al0 (org.apache.cocoon.webapps.authentication.Handlers) it is a=20 ArrayList that contains the names of the attributes. Some examples using

Key: hs.keySet()

Value: hs.values()

Attribute: hs.values()

But I cannot take the Session Context. I was thinking in a get how to get= away=20 the context and just write a tag like: Another question: Can we add this new function to the already xsp-session= =20 logicsheet? Comments are welcome :) Antonio Gallardo --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: