< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

[SFTF] help


Hello All,

I have just encountered something I do not understand. I need to acquire
the IP address of the host on which a given HttpServletRequest was received.
A brief surf through the Servlet API javadoc suggests that the method
getLocalAddr() of javax.servlet.http.HttpServletRequest ought to do the job.

<param name=\"MYADDRESS\" value=\""+request.getLocalAddr()+"\">"


i alwsys get a error on request.getLocalAddr();


Please help me.

Thanks in advance,
vinay kumar singh


<param name=\"MYADDRESS\" value=\""+request.getRemoteAddr()+"\">"