[opencms-dev] Re: paramete passing

Mark bef5471 at iperbole.bologna.it
Mon May 16 19:03:06 CEST 2005


Yes, I've tried also the way you suggest: 
request.getParameter("myparameter"). But the
result is always "null" (with Opencms 6.0 Beta 3), just like using 
cms.getRequest().getParameter("myparameter");
It looks like Opencms does't permit to catch a parameter passed after 
"?" at the end of an URL!!!

Mark.

> I'm sorry, i don't know what i was saying... getParameter is what you 
> need, since you are putting it on the href.... have you tried 
> request.getParameter?
>
> On Monday 16 May 2005 08:20 am, Alexander Wallace wrote:
>
>> / Try request.getAttribute... I believe that parameters are only for 
>> forms...
>
> />/ />/ On Saturday 14 May 2005 06:23 am, Mark wrote:
> />/ > Hi guys,
> />/ > />/ > I've got a page which has a link to another page, like this:
> />/ > />/ > <a href="destination.html?myparameter=ok">click</a>
> />/ > />/ > the JSP template of destination.html has a line to catch 
> the value of />/ > the parameter myparameter:
> />/ > />/ > String param = cms.getRequest().getParameter("myparameter");
> />/ > />/ > but param value results to be always null. Only navigating 
> in the />/ > offline project the value of myparameter is "ok".
> />/ > />/ > Is it a bug?
> />/ > />/ > Mark./





More information about the opencms-dev mailing list