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.
> 
> 
> 

Attachment: MyJSPPortlet.java
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to