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 Randal Wolfgram <rw...@cisco.com> on 2001/08/22 20:56:49 UTC
Question about getURI in org.apache.jetspeed.util.URILookup
Hi,
Whenever a portlet is maximized, the subsequent URL in the title bar to
get back to the referer is relative (HREF for the "restore.gif" image)
because of the way that getMarkedPage gets invoked (without the second
argument which determines whether the method should return a relative or
absolute URL). This has the unfortunate effect of creating
progressively longer URLs (from the standpoint of the browser
interpretting the relative URL) as /jetspeed/index.jsp becomes
/jetspeeed/jetspeed/index.jsp and so on with each iteration of
maximizing and minimizing portlets. Is this by design or should that
method be passing the 'false' boolean? If it is by design, is there any
work around to the 'growing' URL side effect of this?
Thanks,
Randy
--
Randy Wolfgram Cisco Systems
IT Engineer 170 N. Tasman Drive
WSI/Core Infrastructure Group San Jose, CA 95134
(408) 525-0185 http://www.cisco.com
---------------------------------------------------------------------
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
accessing RunData from JSP portlet
Posted by Dave Carlson <dc...@ontogenics.com>.
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: Question about getURI in org.apache.jetspeed.util.URILookup
Posted by Randy Wolfgram <rw...@cisco.com>.
I'm using 1.3a1, but pulled in the most recent (as of the time of my
original post) CVS copy and the getMarkedPage method was still getting
invoked the same way. Unless the fix was elsewhere, it appeared to have
the same issue, although, I didn't run that version, but rather just
pulled it to compare that specific class implementation. I will pull
the latest copy and run it. Thanks for the help.
Randy
Santiago Gala wrote:
>
> Randal Wolfgram wrote:
>
> >Hi,
> >
> >Whenever a portlet is maximized, the subsequent URL in the title bar to
> >get back to the referer is relative (HREF for the "restore.gif" image)
> >because of the way that getMarkedPage gets invoked (without the second
> >argument which determines whether the method should return a relative or
> >absolute URL). This has the unfortunate effect of creating
> >progressively longer URLs (from the standpoint of the browser
> >interpretting the relative URL) as /jetspeed/index.jsp becomes
> >/jetspeeed/jetspeed/index.jsp and so on with each iteration of
> >maximizing and minimizing portlets. Is this by design or should that
> >method be passing the 'false' boolean? If it is by design, is there any
> >work around to the 'growing' URL side effect of this?
> >
> It does not happen with my cvs copy. Which version are you using?
>
> This error was corrected some time ago, but it can be still present in
> the 1.3a1 version (I don't remember).
>
> >
> >Thanks,
> >
> >Randy
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
--
Randy Wolfgram Cisco Systems
IT Engineer San Jose, CA
Internet Architecture Group (408) 525-0185
http://www.cisco.com rwolfgra@cisco.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: Question about getURI in org.apache.jetspeed.util.URILookup
Posted by Santiago Gala <sg...@hisitech.com>.
Randal Wolfgram wrote:
>Hi,
>
>Whenever a portlet is maximized, the subsequent URL in the title bar to
>get back to the referer is relative (HREF for the "restore.gif" image)
>because of the way that getMarkedPage gets invoked (without the second
>argument which determines whether the method should return a relative or
>absolute URL). This has the unfortunate effect of creating
>progressively longer URLs (from the standpoint of the browser
>interpretting the relative URL) as /jetspeed/index.jsp becomes
>/jetspeeed/jetspeed/index.jsp and so on with each iteration of
>maximizing and minimizing portlets. Is this by design or should that
>method be passing the 'false' boolean? If it is by design, is there any
>work around to the 'growing' URL side effect of this?
>
It does not happen with my cvs copy. Which version are you using?
This error was corrected some time ago, but it can be still present in
the 1.3a1 version (I don't remember).
>
>Thanks,
>
>Randy
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org