Foros de discusión
request.getParameter is undefined in Application Display Termplate
Daniel Breitner, modificado hace 9 años.
request.getParameter is undefined in Application Display Termplate
Regular Member Mensajes: 105 Fecha de incorporación: 16/07/08 Mensajes recientes
Hi everyone,
I am trying to read request parameters in my Application Display Template like this:
But all I get is:
Does anyone know how to solve this ? The built-in editor itself and its code completion told me everything is fine ;)
I am trying to read request parameters in my Application Display Template like this:
<#assign myvalue = request.getParameter("param")/>
But all I get is:
Error on line 5, column 1 in 10154#10194#11902
request.getParameter("param") is undefined.
It cannot be assigned to myvalue.
Does anyone know how to solve this ? The built-in editor itself and its code completion told me everything is fine ;)
Pankaj Kathiriya, modificado hace 9 años.
RE: request.getParameter is undefined in Application Display Termplate
Liferay Master Mensajes: 722 Fecha de incorporación: 5/08/10 Mensajes recientes
See if second answer at http://stackoverflow.com/questions/14372165/get-querystring-of-a-url-on-freemarker is useful.
Sorin Pop, modificado hace 9 años.
RE: request.getParameter is undefined in Application Display Termplate
New Member Mensajes: 2 Fecha de incorporación: 20/03/14 Mensajes recientes
Hi Daniel,
Just wondering if you could find the solution for this?... I am having the same issue.
Just wondering if you could find the solution for this?... I am having the same issue.
Olaf Kock, modificado hace 9 años.
RE: request.getParameter is undefined in Application Display Termplate
Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
Debugging tipp: Check request.getClass().getName() to see what you're actually dealing with. You might also want to check themeDisplay.getRequest(), which is - if I remember correctly - a HttpServletRequest. Here you might need to add namespace to construct the actual parameter name.