Try
request.getRemoteAddr();
Reg Daniel
----- Original Message -----
From: "bipin sabhani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 21, 2001 3:03 PM
Subject: error in getRemoteAddress() method
> Hi!
>
> I want to retrieve IP address of client.
> so i write code as below
>
> out.println("remote address"+request.getRemoteAddress());
>
> it gives me error like this
> org.apache.jasper.JasperException: Unable to compile class for =3D
> JSPC:\jakarta-tomcat\jakarta-tomcat-3.2.1\work\localhost_8080\_0002ftest_=
> =3D
> 0002ejsptest_jsp_25.java:75: Method getRemoteAddress() not found in =3D
> interface javax.servlet.http.HttpServletRequest.
> out.println("remote =3D
> address"+request.getRemoteAddress());
>
> so give me some suggestions
>
> thanks
>
> from bipin
>
>
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets