You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Helmut Tammen <He...@epost.de> on 2003/03/26 11:12:30 UTC

Portal session-context in the portal-fw

Hi,

I can´t get any information from the session-context "portal".

Following situation:
1. Coplet resource uri: <resource uri="cocoon:/sunspotdemo-test"/>
2. pipeline in sitemap.xmap: <map:match pattern="sunspotdemo-test">
     <map:generate src="resources/auth/test.xsp" type="serverpages"/>
     <map:transform type="session"/>
     <map:serialize type="xml"/>
   </map:match>
3. xsp - file test.xsp (excerpt):
   <xsp:page xmlns:xsp="http://apache.org/xsp"
             xmlns:session="http://apache.org/xsp/session/2.0">
     URI:<session:getxml context="portal" path="/configuration/uri"/><br/>
     color:<session:getxml context="portal" 
path="/layout/coplets/content/background/color"/>
   </xsp:page>

Result:
Test.xsp is called and executed (I do some more other things inside it 
which work fine) but the strings after URI: and color: are emtpy.

Thanks Helmut


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


Re: Portal session-context in the portal-fw

Posted by Helmut Tammen <HT...@htsystemloesungen.de>.
Hi,

thanks to everyone who thought about my problem. In the meantime it´s 
working like documented. The problem was that I mixed the xsp-session 
logicsheet with the session transformer. After separating these and using 
them in the correct manner it worked.

Helmut

On Wed, 26 Mar 2003 15:16:54 +0100, Helmut Tammen <He...@epost.de> 
wrote:

> Here are some additional informations:
>
> Cocoon - Verion: 2.1-dev (CVS)
>
> All attributes in the session:
> Name: uprofile:portalhandler|sunspotdemo:user_5_guest_guest Value: 
> {misc=[Lorg.w3c.dom.Node;@124154, typeConfPaths=[profile/layout- 
> profile[not(@*)]/portal[not(@*)]/layouts[not(@*)]/layout[not(@*) 
> ]/background[not(@*)]/color[@formtype and @formpath and 
> @formdescription], profile/layout-profile[not(@*)]/portal[not(@*) 
> ]/layouts[not(@*) ]/layout[not(@*)]/font[not(@*)]/color[@formtype and 
> @formpath and @formdescription], profile/layout-profile[not(@*) 
> ]/portal[not(@*) ]/columns[not(@*)]/number[@formtype and @formpath and 
> @formdescription], profile/portal-profile[not(@*)]/content[not(@*) 
> ]/column[@position]/width[@formtype and @formpath and @formdescription], 
> profile/portal-profile[not(@*)]/content[not(@*) 
> ]/column[@position]/coplets[not(@*)]/coplet[@id and @number and 
> @position]/status[not(@*)]/visible[@formtype and @formpath and 
> @formdescription], profile/portal-profile[not(@*)]/content[not(@*) 
> ]/column[@position]/coplets[not(@*)]/coplet[@id and @number and 
> @position]/status[not(@*)]/size[@formtype and @formpath and 
> @formdescription]], portalLayouts={html=[layout: null], wap=[layout: 
> null]}, copletLayouts={html=[layout: null], wap=[layout: null]}, 
> typePaths=[profile/layout-profile[not(@*)]/portal[not(@*) 
> ]/layouts[not(@*) ]/layout[not(@*)]/background[not(@*)]/color[not(@*) 
> ]/backgroundcolor|Backgroundcolor, profile/layout-profile[not(@*) 
> ]/portal[not(@*)]/layouts[not(@*)]/layout[not(@*)]/font[not(@*) 
> ]/color[not(@*)]/textcolor|Fontcolor, profile/layout-profile[not(@*) 
> ]/portal[not(@*)]/columns[not(@*)]/number[not(@*)]/columnnumber|Amount, 
> profile/portal-profile[not(@*)]/content[not(@*) 
> ]/column[@position]/width[not(@*)]/CARDINAL|Width, profile/portal- 
> profile[not(@*)]/content[not(@*)]/column[@position]/coplets[not(@*) 
> ]/coplet[@id and @number and @position]/status[not(@*)]/visible[not(@*) 
> ]/BOOLEAN|Visibile, profile/portal-profile[not(@*)]/content[not(@*) 
> ]/column[@position]/coplets[not(@*)]/coplet[@id and @number and 
> @position]/status[not(@*)]/size[not(@*)]/copletsize|Size], 
> defCoplets={sundnnews=[coplet: null], customnews=[coplet: null], 
> feedback=[coplet: null], personalizeguest=[coplet: null], S0=[coplet: 
> null], consultantprofile=[coplet: null], germany=[coplet: null], 
> S1=[coplet: null], banknews=[coplet: null]}, profile=[#document-fragment: 
> null], mediaCoplets={html={}, wap={}}}
>
> Name: portalConfportalhandler:sunspotdemo Value: {S=sunspotdemo-portal, 
> D=profiles/copletprofile.xml, M=cocoon:raw:/sunspotdemoresource- 
> userprofile, R=profiles/admintypes.xml, 
> K=cocoon:raw:/sunspotdemoresource-saveroleprofile, F=profiles/types.xml, 
> H=cocoon:raw:/sunspotdemoresource-saveglobalprofile, U=false, 
> J=cocoon:raw:/sunspotdemoresource-roleprofile, 
> C=profiles/layoutprofile.xml, T=sunspotdemo, 
> N=cocoon:raw:/sunspotdemoresource-saveuserprofile, 
> P=cocoon:raw:/sunspotdemoresource-userstatus, B=sunspotdemo-portal, 
> Q=cocoon:raw:/sunspotdemoresource-saveuserstatus, 
> G=profiles/globalprofile.xml, V=10000, E=profiles/copletprofile.xml}
>
> Name: org.apache.cocoon.webapps.authentication.Handlers Value: 
> {portalhandler=authentication-Handler portalhandler}
>
> Name: org.apache.cocoon.webapps.authentication.SessionContext Value: 
> org.apache.cocoon.webapps.session.context.SimpleSessionContext@7f2b47
>
> Name: org.apache.cocoon.webapps.session.context.TransactionState Value: 
> {org.apache.cocoon.webapps.session.context.SimpleSessionContext@1adceb8=org.apache.cocoon.webapps.session.components.SessionManager$TransactionState@f2625f} 
>
>
>
>
>
> Name: org.apache.cocoon.webapps.session.context.SessionContext Value: 
> {org.apache.cocoon.webapps.portal.context.SessionContext:sunspotdemo=org.apache.cocoon.webapps.session.context.SimpleSessionContext@1adceb8} 
>
>
>
>
>
>
>
>> Hi,
>>
>> I can´t get any information from the session-context "portal".
>>
>> Following situation:
>> 1. Coplet resource uri: <resource uri="cocoon:/sunspotdemo-test"/>
>> 2. pipeline in sitemap.xmap: <map:match pattern="sunspotdemo-test">
>> <map:generate src="resources/auth/test.xsp" type="serverpages"/>
>> <map:transform type="session"/>
>> <map:serialize type="xml"/>
>> </map:match>
>> 3. xsp - file test.xsp (excerpt):
>> <xsp:page xmlns:xsp="http://apache.org/xsp"
>> xmlns:session="http://apache.org/xsp/session/2.0">
>> URI:<session:getxml context="portal" path="/configuration/uri"/><br/>
>> color:<session:getxml context="portal" 
>> path="/layout/coplets/content/background/color"/>
>> </xsp:page>
>>
>> Result:
>> Test.xsp is called and executed (I do some more other things inside it 
>> which work fine) but the strings after URI: and color: are emtpy.
>>
>> Thanks Helmut
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>



-- 
______________________________________
HTSystemlösungen
Dipl.-Ing. Helmut Tammen
Meißering 45
29693 Hodenhagen
Germany
Telefon: +49 (0) 5164 800530
Fax:     +49 (0) 5164 800531
Mobil:   0170 88 22 491
e-mail:  HTammen@htsystemloesungen.de
www:     http://www.htsystemloesungen.de
Profil:  http://htsystemloesungen.de/profil_ht.htm
______________________________________

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


Re: Portal session-context in the portal-fw

Posted by Helmut Tammen <He...@epost.de>.
Here are some additional informations:

Cocoon - Verion: 2.1-dev (CVS)

All attributes in the session:
Name: uprofile:portalhandler|sunspotdemo:user_5_guest_guest Value: 
{misc=[Lorg.w3c.dom.Node;@124154, typeConfPaths=[profile/layout- 
profile[not(@*)]/portal[not(@*)]/layouts[not(@*)]/layout[not(@*) 
]/background[not(@*)]/color[@formtype and @formpath and @formdescription], 
profile/layout-profile[not(@*)]/portal[not(@*)]/layouts[not(@*) 
]/layout[not(@*)]/font[not(@*)]/color[@formtype and @formpath and 
@formdescription], profile/layout-profile[not(@*)]/portal[not(@*) 
]/columns[not(@*)]/number[@formtype and @formpath and @formdescription], 
profile/portal-profile[not(@*)]/content[not(@*) 
]/column[@position]/width[@formtype and @formpath and @formdescription], 
profile/portal-profile[not(@*)]/content[not(@*) 
]/column[@position]/coplets[not(@*)]/coplet[@id and @number and 
@position]/status[not(@*)]/visible[@formtype and @formpath and 
@formdescription], profile/portal-profile[not(@*)]/content[not(@*) 
]/column[@position]/coplets[not(@*)]/coplet[@id and @number and 
@position]/status[not(@*)]/size[@formtype and @formpath and 
@formdescription]], portalLayouts={html=[layout: null], wap=[layout: 
null]}, copletLayouts={html=[layout: null], wap=[layout: null]}, 
typePaths=[profile/layout-profile[not(@*)]/portal[not(@*)]/layouts[not(@*) 
]/layout[not(@*)]/background[not(@*)]/color[not(@*) 
]/backgroundcolor|Backgroundcolor, profile/layout-profile[not(@*) 
]/portal[not(@*)]/layouts[not(@*)]/layout[not(@*)]/font[not(@*) 
]/color[not(@*)]/textcolor|Fontcolor, profile/layout-profile[not(@*) 
]/portal[not(@*)]/columns[not(@*)]/number[not(@*)]/columnnumber|Amount, 
profile/portal-profile[not(@*)]/content[not(@*) 
]/column[@position]/width[not(@*)]/CARDINAL|Width, profile/portal- 
profile[not(@*)]/content[not(@*)]/column[@position]/coplets[not(@*) 
]/coplet[@id and @number and @position]/status[not(@*)]/visible[not(@*) 
]/BOOLEAN|Visibile, profile/portal-profile[not(@*)]/content[not(@*) 
]/column[@position]/coplets[not(@*)]/coplet[@id and @number and 
@position]/status[not(@*)]/size[not(@*)]/copletsize|Size], 
defCoplets={sundnnews=[coplet: null], customnews=[coplet: null], 
feedback=[coplet: null], personalizeguest=[coplet: null], S0=[coplet: 
null], consultantprofile=[coplet: null], germany=[coplet: null], 
S1=[coplet: null], banknews=[coplet: null]}, profile=[#document-fragment: 
null], mediaCoplets={html={}, wap={}}}

Name: portalConfportalhandler:sunspotdemo Value: {S=sunspotdemo-portal, 
D=profiles/copletprofile.xml, M=cocoon:raw:/sunspotdemoresource- 
userprofile, R=profiles/admintypes.xml, K=cocoon:raw:/sunspotdemoresource- 
saveroleprofile, F=profiles/types.xml, H=cocoon:raw:/sunspotdemoresource- 
saveglobalprofile, U=false, J=cocoon:raw:/sunspotdemoresource-roleprofile, 
C=profiles/layoutprofile.xml, T=sunspotdemo, 
N=cocoon:raw:/sunspotdemoresource-saveuserprofile, 
P=cocoon:raw:/sunspotdemoresource-userstatus, B=sunspotdemo-portal, 
Q=cocoon:raw:/sunspotdemoresource-saveuserstatus, 
G=profiles/globalprofile.xml, V=10000, E=profiles/copletprofile.xml}

Name: org.apache.cocoon.webapps.authentication.Handlers Value: 
{portalhandler=authentication-Handler portalhandler}

Name: org.apache.cocoon.webapps.authentication.SessionContext Value: 
org.apache.cocoon.webapps.session.context.SimpleSessionContext@7f2b47

Name: org.apache.cocoon.webapps.session.context.TransactionState Value: 
{org.apache.cocoon.webapps.session.context.SimpleSessionContext@1adceb8=org.apache.cocoon.webapps.session.components.SessionManager$TransactionState@f2625f} 


Name: org.apache.cocoon.webapps.session.context.SessionContext Value: 
{org.apache.cocoon.webapps.portal.context.SessionContext:sunspotdemo=org.apache.cocoon.webapps.session.context.SimpleSessionContext@1adceb8} 




> Hi,
>
> I can´t get any information from the session-context "portal".
>
> Following situation:
> 1. Coplet resource uri: <resource uri="cocoon:/sunspotdemo-test"/>
> 2. pipeline in sitemap.xmap: <map:match pattern="sunspotdemo-test">
> <map:generate src="resources/auth/test.xsp" type="serverpages"/>
> <map:transform type="session"/>
> <map:serialize type="xml"/>
> </map:match>
> 3. xsp - file test.xsp (excerpt):
> <xsp:page xmlns:xsp="http://apache.org/xsp"
> xmlns:session="http://apache.org/xsp/session/2.0">
> URI:<session:getxml context="portal" path="/configuration/uri"/><br/>
> color:<session:getxml context="portal" 
> path="/layout/coplets/content/background/color"/>
> </xsp:page>
>
> Result:
> Test.xsp is called and executed (I do some more other things inside it 
> which work fine) but the strings after URI: and color: are emtpy.
>
> Thanks Helmut
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>




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