on 05-25-2006 10:58 PM
Hello folks,
Somebody knows how can I get the user IP address (logged in a EP Portal) by the Web Dynpro application ?
Thanks in Advance,
Evandro.
Try following code..
HttpServletRequest req =
((com
.sap
.tc
.webdynpro
.services
.sal
.adapter
.core
.IWebContextAdapter) WDWebContextAdapter
.getWebContextAdapter())
.getHttpServletRequest();
String ClientIPAddress = req.getRemoteAddr();
You will have to add servlet.jar in build path for this to work...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.