Some suggestions, you want? Sure!
1) Read the error message. "No request.getRemoteAddress() found..." hmm,
sounds like the method might not be there. That means either the people who
wrote your container forgot to implement it, or you're using the wrong
method name. Since this is the reference implementation (Tomcat), I'd be
quite surprised to find that they forgot to implement the method
altogether... which means that maybe you're using the wrong method name.
2) Use the correct method name, which the API for
javax.servlet.ServletRequest shows as *getRemoteAddr()*, instead of
getRemoteAddress().
>From: bipin sabhani <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: error in getRemoteAddress() method
>Date: Mon, 21 May 2001 13:03:00 -0000
>
>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
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.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