Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Cristina Vázquez
Journal Article. Access request attributes from a velocity template.l a
August 20, 2008 5:09 AM
Answer

Cristina Vázquez

Rank: New Member

Posts: 8

Join Date: June 14, 2007

Recent Posts

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
Archi Madhu
RE: Journal Article. Access request attributes from a velocity template.l a
June 30, 2010 2:03 AM
Answer

Archi Madhu

Rank: Regular Member

Posts: 240

Join Date: March 24, 2008

Recent Posts

Hi there,

You can get them by..

$portalUtil.getHost($request)

$portalUtil.getPortalPort()

HTH!
Archi