1 Reply Latest reply on Oct 31, 2006 10:33 AM by Peter Johnson

    getHeader(

    Mark Vollmann Newbie

      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.