Tags: address, apache, bean, hoe, java, jsf, jsp, pages, remote, server
hoe to get remote ip address in jsf
On Java Studio » Java Server Pages (JSP)
559 words with 1 Comments; publish: Wed, 16 Jul 2008 13:18:00 GMT; (15062.01, « »)
how to get remote ip address from jsf pages.
And how to get from bean.
i use jsf and apache myfaces.
http://jsp.developerfaqs.com/q_jsp_209585.html
All Comments
Leave a comment...
- 1 Comments

- You'd do it the same way as you do with regular JSP's - get it from the HttpRequest object. The only difference is that you have to get the HttpRequest from the FacesContext, since it's not passed directly to the backing bean.
However, there are limits to the usefulness of having the requester's IP address - When NAT is in use, literally thousands of different requesters can appear to have the same IP address at the same time.
#1; Wed, 16 Jul 2008 13:19:00 GMT