You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Dave Carlson <dc...@ontogenics.com> on 2001/08/22 23:59:18 UTC
accessing RunData from JSP portlet
Using Raphael's recent update (thanks!) I can now embed a JSP portlet,
but I can't access the current RunData object. Using this:
(RunData)request.getAttribute("rundata")
always returns null within the JSP generated servlet.
Any suggestions?
cheers,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: accessing RunData from JSP portlet
Posted by Dave Carlson <dc...@ontogenics.com>.
OK, the current JspPortlet implementation does a very simple call to
EcsServletElement. I'll take a shot at modifying this to use
turbine's JspService, following the approach of VelocityPortlet.
Thanks,
Dave
----- Original Message -----
From: "Raphaël Luta" <ra...@networks.groupvu.com>
To: <je...@jakarta.apache.org>
Sent: Thursday, August 23, 2001 2:07 AM
Subject: Re: accessing RunData from JSP portlet
> Dave Carlson wrote:
>
> > After a bit more investigation, I verified that no turbine or
jetspeed
> > objects are passed to the JSP portlet via the servlet Request. I
can
> > retrieve the User, AccessControlList, and CapabilityMap from the
> > session, but there does not seem to be a way to access RunData for
> > this request.
> >
> > Where in the up-stream processing should this be added, presumably
as
> > a request attribute?
> >
>
>
> I've not checked the JspPortlet code, but if this code uses the
Turbine
> JspService, JspService sets the Rundata as one of its attribute. If
it
> doesn't use JspService, JspPortlet needs to manually set RunData as
attribute
> as well as any other required context.
> This can be achieved pretty easily by modifying JspPortlet and
mirroring
> what VelocityPortlet does.
>
>
> Patches welcome :)
>
> --
> Raphael Luta - raphael.luta@networks.groupvu.com
> Vivendi Universal Networks - Paris
>
>
> --------------------------------------------------------------------
-
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
jetspeed-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: accessing RunData from JSP portlet
Posted by Raphaël Luta <ra...@networks.groupvu.com>.
Dave Carlson wrote:
> After a bit more investigation, I verified that no turbine or jetspeed
> objects are passed to the JSP portlet via the servlet Request. I can
> retrieve the User, AccessControlList, and CapabilityMap from the
> session, but there does not seem to be a way to access RunData for
> this request.
>
> Where in the up-stream processing should this be added, presumably as
> a request attribute?
>
I've not checked the JspPortlet code, but if this code uses the Turbine
JspService, JspService sets the Rundata as one of its attribute. If it
doesn't use JspService, JspPortlet needs to manually set RunData as attribute
as well as any other required context.
This can be achieved pretty easily by modifying JspPortlet and mirroring
what VelocityPortlet does.
Patches welcome :)
--
Raphael Luta - raphael.luta@networks.groupvu.com
Vivendi Universal Networks - Paris
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: accessing RunData from JSP portlet
Posted by Dave Carlson <dc...@ontogenics.com>.
After a bit more investigation, I verified that no turbine or jetspeed
objects are passed to the JSP portlet via the servlet Request. I can
retrieve the User, AccessControlList, and CapabilityMap from the
session, but there does not seem to be a way to access RunData for
this request.
Where in the up-stream processing should this be added, presumably as
a request attribute?
Dave
----- Original Message -----
From: "Dave Carlson" <dc...@ontogenics.com>
To: <je...@jakarta.apache.org>
Sent: Wednesday, August 22, 2001 3:59 PM
Subject: accessing RunData from JSP portlet
> Using Raphael's recent update (thanks!) I can now embed a JSP
portlet,
> but I can't access the current RunData object. Using this:
> (RunData)request.getAttribute("rundata")
> always returns null within the JSP generated servlet.
>
> Any suggestions?
>
> cheers,
> Dave
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org