Hello, in a bean, how can I extract the IP adress of a user?
I triedHttpServletRequest request = (HttpServletRequest)((ServletContext) FacesContext.getCurrentInstance().getExternalContext().getRequest()); String IP = request.getRemoteHost();
but whatever I did I gotjava.lang.ClassCastException: com.sun.faces.context.MyHttpServletRequestWrapper
Any ideas? Thanks a lot... Hans

