URGENT..how to get ip address or computer name of user making a JSP request

Hi,
How do i in my jsp, get the user ip address or any other kind of identification via JSP..
issit something like this...
<%
request.getRemoteUser() ;
%>
this jsp will be accessed when the remote user clicks a link from a normal web page...

request.getRemoteUser usually gives the user name if the Authentication header is present and in case the user is authenticated via http authentication based mechanism.. when you want the ip address of a machine try the methods in socket.
Something like this,
InetAddress ia=<socketobject>.getInetAddress();
String str=ia.getCanonicalHostName();
Hope this Helps
Hi,
How do i in my jsp, get the user ip address or any
y other kind of identification via JSP..
issit something like this...
<%
request.getRemoteUser() ;
%>
this jsp will be accessed when the remote user
r clicks a link from a normal web page...

Similar Messages

  • Get ip address or computer name

    hi all,
    please tell me how i can get the ip address or computer name of a machine running a form.
    Besr Regards,
    hany

    A simple way to get the computer name on the Windows platform in client/server mode is
    tool_env.getvar('COMPUTERNAME', l_str);
    The similar technic should be possible on other platforms.
    Another possibility is to use the database session information:
    select sys_context('userenv', 'host'), sys_context('userenv', 'ip_address') from dual;
    I suppose this will give the name and address of the application server in web-mode.

  • How to get Lion off my computer and go back to Snow Leopard???

    How do I get rid of Lion and go back to Snow Leopard PERMANENTLY?
    I am not techno.
    I need simple instructions with plain descriptions. I do not have any discs. The iMac came with Snow Leopard and I loaded NOTHING.
    I should never have bought  Lion. It is awful.
    Please someone tell me how to get Lion off my computer and go back to Snow Leopard.

    Can I use time machine to restart the machine before the fateful day when I bought and installed Lion?
    Yes, if you have a pre-Lion backup, but you need an installation disc.
    Is there anything else I can do?  more RAM?
    I don't know how much RAM you have. It must be at least 2 GB, or Lion wouldn't have installed. If that's all you have, you might get better performance by adding more. But from your description, I doubt that your problem is due entirely, if at all, to a lack of RAM. If you want to troubleshoot the problem, it will take some patience and effort, and you'll need to be in a calm frame of mind.

  • How to get MAC address from IP address in LAN

    Hi all,
    How to get MAC address from IP address in LAN (windows or any OS), I would have all IP addresses of my LAN, so I would like to know all MAC address.
    Code examples are highly appreciated.
    Thanks & Regards,
    abel...

    abel wrote:
    Yeah that is only working for local system, but how to get remote system's MAC ..?
    Thanks for quick reply ...
    Edited by: abel on Jan 28, 2009 12:10 AMIt is my understanding that only one person ever found the holy grail which you seek. But sadly [_he's dead_|http://forums.sun.com/profile.jspa?userID=649366]
    As a curious aside how did you manage to get the list of IPs?

  • Hello i just purchased an iMac and went through setting up my account and forgot my password any ideas how to get it or reset computer?

    hello i just purchased an iMac and went through setting up my account and forgot my password any ideas how to get it or reset computer?

    jacksonlandscape wrote:
    hello i just purchased an iMac and went through setting up my account and forgot my password any ideas how to get it or reset computer?
    That quickly!
    Have you read for possible solutions over in the "More Like This" thread over here?----------------------->
    When selecting passwords, make sure it's one that you will NEVER forget AND no one else can figure out. 
    Old school--- > Print it out & keep in a safe place.  A place that ONLY you know about AND never forget.
    New school---> Get a password manager utility.  Highly recommend 1Password which is shareware.  Do a Google search for free password managers.

  • How to get IP address of wp8 device

    How to simply retrieve IP address of wp8 device?
    microsoft.Phone.Net.NetworkInformation has too many classes related to networkinfo but none of them give IP address.

    see this link
    http://www.c-sharpcorner.com/UploadFile/2b876a/how-to-get-ip-address-in-windows-phone-8/

  • How to Get IP address from 6i?

    I would like to know command or syntax for get IP ADDRESS of computer?
    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS')
    FROM DUAL;
    It can't work in syntax of FORM6i.
    null

    Jason,
    is there any way to make that example
    work with release 6.0, preverribly
    with IE5 (native VM)?
    The WHEN-CUSTOM-ITEM-EVENT Trigger
    doesn't seem to fire.
    Thanks
    Anton Weindl
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jason Pepper ([email protected]):
    If you are using web deployed forms then you need to use a javabean to obtain the IP of the local machine - you can get one that does it here..
    http://technet.oracle.com/sample_code/products/forms/listing.htm#pjcexamp
    If you are running client server then there is a utility in d2kwutil.pll that allows you to read the registry and do things like get the IP address. d2kwutil is shipped with your copy of Forms - just have a look for it - the code is self documenting, but there is also a manual you can read too.
    Jason Pepper
    Principal Product Manager
    Enterprise Internet Tools
    Oracle Corp<HR></BLOCKQUOTE>
    null

  • How can I see which computers (computer name) Creative Cloud is installed on?

    How can I see which computers (computer name) Creative Cloud is installed on?

    Hi Arno ten Hagen,
    To check for activation you need to go to all the machines in which you have installed CC apps, launch any of the CC software, go to help and you will see the email address mentioned by which you are logged in to that machine.
    Kb: http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html .
    Regards,
    Romit Sinha

  • Sharepoint Workflow : how to get document full path + file name into variable?

    Hi,
    Anybody knows how to get document full path + file name into a variable in Sharepoint 2010 workflow?
    Example http://sp1:80/InvoiceQueue/Shared Documents/123.pdf
    I am using List Workflow which links to a document library.

    Hi SAMSUNG,
    According to your description, my understanding is that you want to get the full path of a document in a list workflow.
    You can set the variable to the Enconded Absolute URL of the document. The screenshot is my testing. In my testing (in the red area), when the title of a document was equal to the tile of the current item, set a variable to the Enconded Absolute URL of the
    document. I used ‘Log to history list’ to check the value of the variable in Workflow History .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to get the intersection of two arraylist containing user defined obj??

    How to get the intersection of two arraylist containing user defined obj??
    I can easily get the intersection of two array list which containing some simple class(Integer, String). But how to get the intersection of two arrayList which contain user defined object?
    Here is the sample code..I can not run this out...anybody can help me? thank you very much..
    The correct result should be like this:
    2
    2
    but I can only get this:
    2
    0
    import java.util.*;
    public class testRetain{
         public static void main(String[] args){
              ArrayList a = new ArrayList();
              ArrayList b = new ArrayList();
              a.add( new dog(1,2,2) );
              a.add( new dog(1,2,1) );
    System.out.println(a.size() );
              b.add( new dog(1,2,2) );
              a.retainAll(b);
    System.out.println(a.size() );
    class dog implements Comparable{     
         int head;
         int arms;
         int legs;
         dog(int head, int arms, int legs){
              this.head = head;
              this.arms = arms;
              this.legs = legs;
         public int compareTo(Object o){
              if ( ((dog)o).head > this.head )
                   return -1;
              else if ( ((dog)o).head < this.head )
                   return 1;
              else
                   return 0;
    }

    @Op. Your classes should override equals and hashCode
    Kaj

  • How to get the dynamic Crosstab header name ?

    Hi ,
    The crosstab resaults shows as below ,How to get the dynamic Crosstab header name ?
    | Countryname |
    | Province1 | Province2 |
    | here to get CountryName | here to get CountryName |
    how to get the Countryname in data ceil?
    thanks

    Could you please elaborate on your requirement?
    You want header to be dynamic?

  • Get and then Move ( Computer name )

    Hi all ,
    One of the nice people here helped me with Powershell script ,
    My goal is Get from Specific OU  computer names like ISR and TLV and then move them to Another OU ,
    This is my Script :
    Get-ADComputer -SearchBase "CN=Computers,DC=XXX,DC=com" -Filter {(Name -Like "ISR*") -And
    (Name -Like "TLV*")} | Move-ADObject -TargetPath "OU=xxx-Computers,DC=XXX,DC=com"
    I get error that " GetADcomputer is not recognized as the name of a CMDlet:
    The term 'Get-ADComputer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    My Website:www.Pelegit.co.il Mcitp /Mcsa 2012

    Start here:
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/01/25/hey-scripting-guy-january-25-2010.aspx
    ¯\_(ツ)_/¯

  • How to get project GUID from project name?

    How to get project GUID from project name in Campaign mgmt ?

    hello,
    have a look in table CGPL_PROJECT.
    regards,
    Frédéric

  • How to get MAC address using java code

    hi friends
    please write me, How can I get MAC Address of local machine using java code.I don't want to use JNI.
    Please reply me. Its urgent for me
    Thanks in advance
    US

    You have several ways under *nix
    ifconfig -a | grep HWwill output something like
    eth0      Lien encap:Ethernet  HWaddr 00:11:FF:74:FF:B4combined with Runtime.getRuntime().exec("")and Process.getInputStream()you should be able to read it easilly.
    Under Windows (and Linux of course) try jpcap (http://sourceforge.net/projects/jpcap)
    You can also use jnative as a generic tool (http://sourceforge.net/projects/jnative)
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to get delivery address for PO

    I have a problem.
    I am working on a SAP Script , which is for PO(Zmedruck_po) , which is a copy of
    MEDRUCK.
    I am asked to print the delivery adress in a window .
    The scenario is like this .
    In ME23N , under item details , there is a tab called DELIVERY ADDRESS
    this has option to enter the adress details or a delivery number in the  address text box .
    If the address number is present i have to print that address , else i have to print the address which is entered in the delivery address tab.
    If the delivey address number is there i have no problem in printing it ,But if address number is not there ,I need to know how to get the delivery address,
    is it the plant address, company code address ... ?
    I debuged ,but could not find out.
    Can anyone help please .

    Hi,
    I don't know the table that is used to store the manual address on the PO but if you get your ABAPer to checkl the code in ME21N they should be able to tell you.
    Or better still, if one of the other experts here know the table that is used they will post the solution.
    Steve B

Maybe you are looking for

  • MessageTransformBean in sender JMS Adapter flat file to xml conversion

    Hi All, The scenario is MQ (Flat File )  --->PI - >Idoc The flat file structure is 112233 AABBCC The expected XML Structure after using MessageTransformBean in the sender JMS adapter  is <Record> <Row> <f1>11</f1> <f2>22</f2> <f3>33</f3> </Row> <Row>

  • ITunes Setup Assistant runs every time I start iTunes 7.3.1.3

    The past 2 iterations of iTunes have had the same problem for me - even though the program is installed already, it doesn't save my settings and runs the setup assistant every time I start the application. I've gone through the assistant twice and pu

  • Add Page n of nn, date, current user name to aReport Footer on PDF Report

    Hello, I am very new to using Apex. I have a SQL Report which I can output to a PDF and works. I have a header and the contents of the report all appearing in the PDF OK. I would like to have a footer for each page which has the date & timestamp, cur

  • Preventing MRP for 541'd material

    Hi all, Sometimes we send expensive spare parts to other companies in case of emergency, and get them back when they have it in a few days. When a material is sent to a vendor with 541 movement (Transfer posting unrestricted-use stock - stock of mate

  • Vertical lines on 5s screen

    I noticed these appear the other day, I haven't done anything to my knowledge like drop or get it wet, but i just noticed these pop up.  They are only on the left hand side of the screen, and if i zoom/move they stay there, so its definitely a screen