I want to get parameter from URL and set it as value to hidden input. I tried it like I did when I used Servlet API. It doesn't work. (value=0). Also I checked this answer. And nothing helped. Also I tried to use scriptlets <input type="hidden" name="views" value="<%PortalUtil.getOriginalServletRequest(request).getParameter("views").toString();%>">
But it doesn't work too. How to extract it in liferay7 portlet and set to input?