You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Amit Soni <am...@netcore.co.in> on 2005/01/17 13:12:14 UTC

How to get Session in portlet

Hi all,

Here i have made my own login then using this login page i get logged in
jetspeed. In this login page i have set one session and want to access
this session in each portlet of jetspeed....

now i after login i have few panes in which i have IFramePortlet for
that i have written class...

On click on each i frame portlet it calls one class for which its parent
is of IFramePortlet. The xreg file for this portlet si like ::



<?xml version="1.0" encoding="UTF-8"?>
<registry>
    <portlet-entry name="EventsHorizon" hidden="false" type="ref" 
		   parent="IFramePortlet" application="false">
        <meta-info>
            <title>Events Horizon Portlet from the class </title>
            <description>Events Horizon Portlet</description>
            <image></image>
        </meta-info>
        <classname>com.netcore.actions.EHIFramePortlet</classname>
        <parameter name="_showtitlebar" value="true" hidden="false" 
			cachedOnName="true" cachedOnValue="true">
            <meta-info/>
        </parameter>
        <parameter name="height" value="500" hidden="false" 
			cachedOnName="true" cachedOnValue="true">
            <meta-info/>
        </parameter>
        <parameter name="width" value="100%" hidden="false" 
			cachedOnName="true" cachedOnValue="true">
            <meta-info/>
        </parameter>
        <parameter name="frameborder" value="0" hidden="false" 
			cachedOnName="true" cachedOnValue="true">
            <meta-info/>
        </parameter>
        <parameter name="EHPath" value="" hidden="false" 
			cachedOnName="true" cachedOnValue="true">
            <meta-info/>
        </parameter>
        <media-type ref="html"/>
        <url cachedOnURL="true"/>
        <category group="Jetspeed">EH</category>
    </portlet-entry>
</registry>


and the class com.netcore.actions.EHIFramePortlet ::

public class HipergateIFramePortlet extends AbstractInstancePortlet 
 
has method :: public ConcreteElement getContent(RunData runData)

so i want to access this session if this class so if any one of u have
idea regarding this then pls help me...

Thanks and Regards,
Amit Soni



----------------------------------------------------------
Netcore's New Website
http://www.netcore.co.in
----------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org