Fórumok
request.getParameter is undefined in Application Display Termplate
Daniel Breitner, módosítva 9 év-val korábban
request.getParameter is undefined in Application Display Termplate
Regular Member Bejegyzések: 105 Csatlakozás dátuma: 2008.07.16. Legújabb bejegyzések
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, módosítva 9 év-val korábban
RE: request.getParameter is undefined in Application Display Termplate
Liferay Master Bejegyzések: 722 Csatlakozás dátuma: 2010.08.05. Legújabb bejegyzések
See if second answer at http://stackoverflow.com/questions/14372165/get-querystring-of-a-url-on-freemarker is useful.
Sorin Pop, módosítva 9 év-val korábban
RE: request.getParameter is undefined in Application Display Termplate
New Member Bejegyzések: 2 Csatlakozás dátuma: 2014.03.20. Legújabb bejegyzések
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, módosítva 9 év-val korábban
RE: request.getParameter is undefined in Application Display Termplate
Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
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.