Actually, you should avoid casting to HttpServletRequest if at all possible because your application will break if/when you run it as a portlet.
ExternalContext has methods available for path information. ExternalContext extCtx = facesContext.getExternalContext(); extCtx.getRequestContextPath(); extCtx.getRequestServletPath(); extCtx.getRequestPathInfo(); etc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970129#3970129 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970129 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user