Hi Matthias,

the PortletTemplateLink( rundata, this ) in your MyJSPPorlet class is
deprecated.
Do you know how to do it with BaseJetspeedLink ???

Thanx
Bjoern



> -----Urspr�ngliche Nachricht-----
> Von: Wimmer, Matthias [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 20. August 2002 16:00
> An: 'Dariush Behboudi'; [EMAIL PROTECTED]
> Betreff: 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]>

Reply via email to