Thanks Matt, your class works fine. I had to compile it with -deprecation option, but it's enough for my problem right now.
Dariush. -----Messaggio originale----- Da: Wimmer, Matthias [mailto:[EMAIL PROTECTED]] Inviato: marted� 20 agosto 2002 16.00 A: 'Dariush Behboudi'; [EMAIL PROTECTED] Oggetto: RE: getInitParamter - JSP Hi, try this portlet class. Here is a sample JSP page: <%@ page import="org.apache.jetspeed.portal.Portlet" %> <%@ page import="org.apache.jetspeed.portal.portlets.AbstractPortlet" %> <%@ page import="org.apache.jetspeed.portal.PortletSkin" %> <%@ page import="org.apache.jetspeed.services.rundata.JetspeedRunData" %> <% JetspeedRunData theRunData = (JetspeedRunData)request.getAttribute( "rundata" ); %> <% Portlet thePortlet = (Portlet)request.getAttribute( "portlet" ); %> Portlet = <%=thePortlet%> <BR> PortletInstance = <%=((AbstractPortlet)thePortlet).getInstance(theRunData)%> <BR><BR><BR> Hope this works Matthias Wimmer > -----Original Message----- > From: Dariush Behboudi [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 20, 2002 5:20 AM > To: Wimmer, Matthias > Subject: RE: getInitParamter - JSP > > > Hi Matt, > I've read your email in the jetspeed user list. > I'm trying to create a test jsp portlet. > In this portlet the jsp page reads a parameter from its portlet > configuration and prints out the result. > Actually, I'm able to retrive the runData Object, but I'm not able to > access the portlet object associated with this jsp page. > I tried to use getPortlet() method from the JetspeedRunData obj, but a > null is returned. > > Do you have please any suggestion about this claim? > May you share your class to access the portlet object? > > Thanks in advance, Dariush. > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
