[opencms-dev] Re: paramete passing
Alexander Wallace
aw at avatartechnology.com
Mon May 16 21:25:10 CEST 2005
well... i'm able to use parameters like that in my jsp... have you tried
getting the parameters map and iterate throught them?
On Monday 16 May 2005 12:03 pm, Mark wrote:
> 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./
>
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list