portals-jetspeed-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Platts <john_pla...@hotmail.com>
Subject RE: Accessing URL parameters
Date Sun, 20 Apr 2008 14:26:47 GMT

The correct way to include URLs that include parameters is to use the RenderResponse.createActionURL()
or the RenderResponse.createRenderURL() methods, and then include the result of the PortletURL.toString()
method in the href attribute of the <a> tag or the action attribute of the <form>

John Platts

> To: jetspeed-user@jakarta.apache.org
> From: rmcnulty@xtra.co.nz
> Subject: Accessing URL parameters
> Date: Sat, 19 Apr 2008 17:28:34 +1200
> Hi All
> JSR168 prohibits a portlet from accessing parameters attached to a page URL, 
> and Jetspeed implements this correctly.
> But I am trying to convert our applications to portlets. These applications 
> change their behaviour dependent on date, and have a simple system that lets 
> our testers add the test date to the URL:
>  e.g. http://localhost:8080/forms/myform?testDate=20080423
> This is obviously net going to work in the portlet world. My question is, 
> can anyone suggest an elegant alternative? I had some ideas about a separate 
> portlet that puts the test date into System.properties, but have not tried 
> it.
> Regards
> Ron
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org

More immediate than e-mail? Get instant access with Windows Live Messenger.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message