Re: How do i know who called my servlet

Chuck Hirstius <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
You should be able to get the IP of the box calling your servlet from the
HttpServletRequest object like:

String clientIPAddr = request.getRemoteAddr();

You could then match this up with an expected IP or any number of other
methods to determine who called you.






Jen <[email protected]>
Sent by: "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[email protected]>
02/06/2003 02:41 PM
Please respond to "A mailing list for discussion about Sun Microsystem's
Java               Servlet API Technology."


        To:     [email protected]
        cc:
        Subject:        How do i know who called my servlet


Hi,
I have a servlet that called by other party, i would
like to do the statistics about who called us. how do
i know where the request coming from?

Thanks

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the
body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.