Foros de discusión
Journal Article. Access request attributes from a velocity template.l a
Cristina Vázquez, modificado hace 15 años.
Journal Article. Access request attributes from a velocity template.l a
New Member Mensajes: 8 Fecha de incorporación: 14/06/07 Mensajes recientes
Hi, I'm usint Liferay 4.2
I'm creating a new Journal Article and I need to access request's attributes.
How can I do that?
I tried with #set ($serverName = $request.get('server-name')) but it doesn't work.
I need to obtain the server name and server port.
Thank you
I'm creating a new Journal Article and I need to access request's attributes.
How can I do that?
I tried with #set ($serverName = $request.get('server-name')) but it doesn't work.
I need to obtain the server name and server port.
Thank you
Archi Madhu, modificado hace 13 años.
RE: Journal Article. Access request attributes from a velocity template.l a
Regular Member Mensajes: 237 Fecha de incorporación: 25/03/08 Mensajes recientes
Hi there,
You can get them by..
$portalUtil.getHost($request)
$portalUtil.getPortalPort()
HTH!
Archi
You can get them by..
$portalUtil.getHost($request)
$portalUtil.getPortalPort()
HTH!
Archi