Using
jboss portal + as from jboss.org
Version 2.4.0
A portlet includes a jsp page, which in turn calls a tag:
...
String userAgent = ((HttpServletRequest) pageContext.getRequest()).getHeader("User-Agent");
...
userAgent is always null. Request is a RenderRequest.
I know that User-Agent is not required to be sent and unreliable too, but normally the data provided is pretty accurate for our means and we dont want to identify the browser via javascript.
This was fixed in 2.4.1. I had a similar issue but related to JSTL. See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=88343
.