Cleint Information

Discussion in 'Java' started by Ponic, Apr 7, 2004.

  1. Ponic

    Ponic Guest

    How to get client information using JSP like client login name,IP address etc.

    Any help is highly appreciable.

    Thanks

    Ponic
    Ponic, Apr 7, 2004
    #1
    1. Advertising

  2. On 7 Apr 2004 04:08:42 -0700, Ponic wrote:

    > How to get client information using JSP like client login name,IP address etc.


    <form method=post>
    <p>Please enter your log-in name <input name='name' type=text>
    <p>Please enter your IP address <input name='ip' type=text>
    etc.
    <input type='submit'>
    </form>

    ;-)

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
    Andrew Thompson, Apr 7, 2004
    #2
    1. Advertising

  3. Ponic

    Guest

    <%@ page import="java.util.*"%>
    Remote Address: <%=request.getRemoteAddr()%><br />
    Remote Host: <%=request.getRemoteHost()%>
    <%
    for (Enumeration e = request.getHeaderNames(); e.hasMoreElements() ;)
    {
    for (Enumeration f = request.getHeaders((String) e.nextElement()); f.hasMoreElements() ;)
    {
    out.println(f.nextElement());
    }
    }
    %>

    Peace. Have A GOOD DAY.
    , Apr 9, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Prodip Saha
    Replies:
    4
    Views:
    2,583
    Peter Blum
    Mar 3, 2004
  2. Julia
    Replies:
    3
    Views:
    357
    Eliyahu Goldin
    Jun 22, 2005
  3. =?Utf-8?B?QW5hbmQ=?=
    Replies:
    2
    Views:
    2,723
    =?Utf-8?B?QW5hbmQ=?=
    Jan 11, 2006
  4. Rob

    Cleint Server App

    Rob, Jan 15, 2004, in forum: Java
    Replies:
    0
    Views:
    344
  5. Jim M
    Replies:
    0
    Views:
    136
    Jim M
    Jan 14, 2004
Loading...

Share This Page