As can know the user-agent in to velocity template? I use the plug-in "Mobile device recognition wurfl) in liferay.
Liferay detect the user-agent, it shows me the mobile page but into template is always:
mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.22 (khtml, like gecko) chrome/25.0.1364.172 safari/537.22
I use:
Mozille firefox plug-in User agent switcher tools that sending: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16
Into templaye i use:
set($agent = $request.get('attributes').get('User-Agent'))
$agent
Thank you.