掲示板
request.getParameter is undefined in Application Display Termplate
9年前 に Daniel Breitner によって更新されました。
request.getParameter is undefined in Application Display Termplate
Regular Member 投稿: 105 参加年月日: 08/07/16 最新の投稿
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 ;)
9年前 に Pankaj Kathiriya によって更新されました。
RE: request.getParameter is undefined in Application Display Termplate
Liferay Master 投稿: 722 参加年月日: 10/08/05 最新の投稿
See if second answer at http://stackoverflow.com/questions/14372165/get-querystring-of-a-url-on-freemarker is useful.
9年前 に Sorin Pop によって更新されました。
RE: request.getParameter is undefined in Application Display Termplate
New Member 投稿: 2 参加年月日: 14/03/20 最新の投稿
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.
9年前 に Olaf Kock によって更新されました。
RE: request.getParameter is undefined in Application Display Termplate
Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
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.