Hi, Thanks for u r interest...
Here i have made my login page in another context say xyz... not in xyz context i have one page the content is like :: test.jsp :: String sendUrl = "http://ipaddress:port/jetspeed/portal?action=JLoginUser&username=name&password=password" session.setAttribute("data",object); response.sendRedirect(response.encodeRedirectURL(sendUrl)); so by this command it sends the page to jetspeed and directly login in the jetspeed page. Now in this page one pane is there for that i have written one class in which i want that session which i have set in test.jsp page.. so if u have any idea then pls help me.... Thanks and Regards, Amit Soni On Mon, 2005-01-17 at 17:56, angeloimm wrote: > Hello; in the method public ConcreteElement getContent(RunData runData) you > can use runData in order to have Session: > > HttpSession session = runData.getRequest().getSession(); > > it works fine for me.... i hope the same for you :-)) > regards > > ---------- Initial Header ----------- > > >From : "Amit Soni" [EMAIL PROTECTED] > To : "Jetspeed Jetspeed" jetspeed-user@jakarta.apache.org > Cc : > Date : Mon, 17 Jan 2005 17:42:14 +0530 > Subject : 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > ____________________________________________________________ > Libero ADSL: 3 mesi gratis e navighi a 1.2 Mega. E poi hai l'Adsl senza > limiti a meno di 1 euro al giorno. > Abbonati subito senza costi di attivazione su http://www.libero.it > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------- Netcore's New Website http://www.netcore.co.in ---------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]