I'm trying to change the title of the page, but the method PortalUtil.setPageTitle("title", request);
is not working from the jsp. I also tried in the doView
method.
My second attempt was throught servletrequest:
In doView
I wrote
HttpServletRequest httpRequest = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(renderRequest));
httpRequest.setAttribute("hola", "hola");
And in the portal normal I tried with:
#set ($holas =$request.get('attributes').get('hola'))
#set ($holas2 = $request.getSession().getAttribute("hola"))
$holas
$holas2
but Velocity only shows $holas $holas2
.