I think you can use the HttpServletRequest method getRemoteAddr() which is inherited from the ServletRequest interface.
            <% request.getRemoteAddr() %>
 
I don�t know if it will work in the JSP pages because I�ve only tried it in a servlet.
 
The most information related to requests and responses, from and to the client, is in the javax.servlet package.
 
Regards,
 
Sergio
 
----- Original Message -----
From: Dipesh
Sent: Monday, January 07, 2002 10:01 AM
Subject: Re: How to get sessionID in JSP

Hi ,
        Thanx a lot  i got it. Now cud u please tell me how to get the user/ip from where this request came. Actually if the user opens one more explorer/netscape window and again sends the request then how to know that this is the same user. Is something like getIP() or getUser method() available in JSP. I want to know this bcos i m creating one file for user and i want to create only one file even if user opens more than one session. How to incorporate this ??? PLS HELP.
 
Thanks and Regards
Dipesh
 

Reply via email to