Ron,

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

John Platts


> To: [EMAIL PROTECTED]
> From: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_________________________________________________________________
More immediate than e-mail? Get instant access with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_instantaccess_042008

Reply via email to