Getting Windows Username of the Client m/c

Hi,
I want to be able to get the userid of a person when they call a servlet which is residing on a server.
The person will log into his own computer using his user id and when he calls my servlet which
is on my server over a network, I will be able to retrieve his user id .
Thanx in advance
bye

Why don't you include these informations with the POST (or GET) message to the servlet?
just use:
http://....../servlet?userLogin=User Name&userPassword=765
at the servlet, you can retrieve these info using the getParameter() command:
   public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
String usrId = request.getParameter("userLogin");
String usrPassword = request.getParameter("userPassword");
.....

Similar Messages

  • Windows username  from the client system

    hi guys,
    i want the username of the window .... to use it in my jsp page .. i want the code to run on the client machine ... plz help ...

    Try this link. Here u can find WSH and VB Script. Through this u get the username . That means u need to embed script code in JSP.
    I tried to get using JSP. but its vain. Try for more solutions. For time being i will check it.
    http://www.codeproject.com/vbscript/userinfo.asp
    Regards

  • How get windows username

    Hi,
    In my java application I have following code to get windows username-
    *<%*
    String s1 = System.getProperty("user.name");
    out.println("The Username : "+s1+" ");
    String s2 = System.getenv("USERNAME");
    out.println("The Username : "+s2);
    *%>*
    If I log in to my PC and execute it I get correct output for both the statements, But when I execute it on server machine(when I logged in) I get the output as-
    The Username : SYSTEM The Username : null
    I use Apache Tomcat 5.5 to run the jsp on both (PC & server) machines. One small difference is I use eclipse on my PC and I don't use eclipse on server (I think it doesn't matter).
    But when I use the same code inside a java class I get correct output on both (PC & server) machines.
    Can any one solve my problem.
    Thanks in advance,
    Tiijnar

    tiijnar wrote:
    Hi BalusC,
    Thanks for the reply.
    Could you please be more elaborted on this. What I mean is- can you provide me the code for the applet.Just the same code. Use System#getProperty() in an applet. The only difference is that the applet runs at the client machine and the Java web application runs at the server machine. If your problem is rather that you don't know how to use applets, just check the applet tutorial here at sun.com. Google can find it.
    Moreover when I execute jsp on my PC, I execute it on localhost (a server inside my PC). I face the problem when I host my application on my server machine.D'oh. On "localhost" the client and the server are physically on the same machine.

  • How to get windows username printed on each page irrespective of application? we have cm6030f.

    How to get windows username printed on each page irrespective of application? we have HP CM6030F.

    Hi,
    Normally, you will receive a Windows Azure Pass from your local Windows Azure team. Please try to contact your local Windows Azure contact (http://support.microsoft.com/gp/customer-service-phone-numbers?wa=wsignin1.0
    Also, you could see this page
    http://www.windowsazurepass.com/AzureU/AcademicFAQ and apply the free trial azure via (http://www.windowsazurepass.com/AzureU/).
    Q: I am a student. Can I apply for a pass?                     
    A: Windows Azure Educator Grants are only for valid faculty. If your faculty has been awarded a Windows Azure Educator Grant, you will be able to get a pass through him/her for you coursework. If you are interested in learning more about Windows Azure,
    we encourage you to share these Educator Grants with your faculty or sign up for the FREE 3-month trial offer. 
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get windows username & password

    Hi friends,
    Requirement is to get windows username & password,
    My server is Tomcat4.0,
    My code in login.jsp page is
    <%
    String auth = request.getHeader("Authorization");
    if (auth == null) {
    response.setStatus(response.SC_UNAUTHORIZED);
    response.setHeader("WWW-Authenticate", "NTLM");
    return;
    if (auth.startsWith("NTLM ")) {
    byte[] msg = new sun.misc.BASE64Decoder().decodeBuffer(auth.substring(5));
    int off = 0, length, offset;
    String s;
    if (msg[8] == 1) {
    off = 18;
    byte z = 0;
    byte[] msg1 = {(byte)'N', (byte)'T', (byte)'L', (byte)'M', (byte)'S',
    (byte)'S', (byte)'P', z,
    (byte)2, z, z, z, z, z, z, z,
    (byte)40, z, z, z, (byte)1, (byte)130, z, z,
    z, (byte)2, (byte)2, (byte)2, z, z, z, z, //
    z, z, z, z, z, z, z, z};
    response.setStatus(response.SC_UNAUTHORIZED);
    response.setHeader("WWW-Authenticate", "NTLM "
    + new sun.misc.BASE64Encoder().encodeBuffer(msg1).trim());
    return;
    else if (msg[8] == 3) {
    off = 30;
    length = msg[off+17]*256 + msg[off+16];
    offset = msg[off+19]*256 + msg[off+18];
    s = new String(msg, offset, length);
    //out.println(s + " ");--------------------------> here getting system_name
    else
    return;
    length = msg[off+1]*256 + msg[off];
    offset = msg[off+3]*256 + msg[off+2];
    s = new String(msg, offset, length);
    //out.println(s + " ");
    length = msg[off+9]*256 + msg[off+8];
    offset = msg[off+11]*256 + msg[off+10];
    s = new String(msg, offset, length);
    out.println("Hello <span style='position:relative; width:190;"
    + " height:10;filter:glow(Color=#009966,Strength=1)'>");
    out.println(s + "</SPAN>");----------------------------------->here getting loginname.
    %>
    from this i was able to get systemname & username,How do i get password.
    Is it possible to get password?
    Thanks,
    Satya.

    There's no way to get the password. NTLM uses a two-round challenge-response scheme which never send the password (neither clear nor encrypted) on the wire.
    Why do you need the user's password? Is your service going to access a backend service using the user's credential? If so, you may need to use Kerberos delegation.

  • Unable to get Window Handle for the 'AxCrystalActivXViewer' control.

    Hi,
    I have Operating System : Windows 7 and Application developed in VS 2005 and I am using Crystal Report XI licenced version.
    But when I am trying to use TTX(Field Defination) based reports it gives me "Unable to get Window Handle for the 'AxCrystalActivXViewer' control. Windowless ActivX Controls are not supported."
    Please provide me solution for this ASAP as I am stucked on this from long lomg time.
    -Regards
    Swapnil

    Appears you are installing an upgrade version.
    Use these links:
    http://downloads.businessobjects.com/akdlm/crystalreports/crxir2_sp4_full_bld_0-20008684.exe
    http://downloads.businessobjects.com/akdlm/crystalreports/CRYSTALREPORTS06_0-20008684.EXE

  • How do i get Windows 2000 off the VPC 5 disc to install with VP 7

    VPC 5 With windows 2000 upgraded to VPC 6 ran great. But hey I thought lets upgrade so I bought VPC 7 Stand-alone, installed XP PRO and it is soooooo
    Sloooow. I want to get Windows 2000 off the VPC 5 disc to install on VPC 7 to see if there is a difference. Yeah we got 1.5 gigs of Ram and a Dual processor
    Machine. Maybe something else is going on but I cant figure what. So How do I get Windows 2000 off that VPC 5 disc???

    Yep tried that. No go but thanks.
    Some of the previous versions of the VPC CDs
    (unfortunately, I can't remember which) were hybrids
    and doubled as not only the VPC for Mac installer CD
    but also the Windows OS installer CD. You might try
    creating a new virtual PC and then when asked for a
    Windows installer disk, insert and capture your VPC 5
    disk. I have no idea if this will work for you.
    Later versions of VPC came with the Windows OS
    pre-installed on VPC disk images and not with a
    Windows installer. If your version has a disk image,
    copy it from your version 5.0 CD and try opening that
    in VPC 7.0. You should see a conversion process.
    Hope this helps! bill
    1
    GHz Powerbook G4   Mac OS X (10.4.4)  

  • Services in JCo RFC not getting started after Changing the client from 001

    Hi SAP Stars,
                               I have recently Installed Quality and Production servers with PI 7.1 on windows 2003, Sqlserver 2005, when I'm doing Post Activities(http://host:port/nwa) in which I try to change the client from 001 to 300(newly created) in  JCo RFC(4 services) and start the service it is throwing error when I again change it to 001 client and start the service it is getting started, Could anyone help me in solving this issue same issue I facing in PI 7.1 Quality and Production
    Thanks In Advance
    Anil Kumar

    Hi Anil,
    All these JCo RFCs are client specific RFCs.
    Please logon your PI NWA
    Choose Configuration Management - Infrastructure- JCo RFC Provider
    Then, Select the RFC
    Under Details -> Choose Repository Configuraton
    Change the client name to 300 (your new client)
    Save
    And repeat the same for all JCo RFC that you want to work for your newly created client.
    Please ensure that you are using SAPJSF user & correct password for all these RFCs.
    Ideally, these rfcs shuould work now if now please restart your PI  (mostly Java alone also do)
    I hope this helps you.
    Regards
    Sekhar
    Edited by: sekhar on Dec 17, 2009 11:39 AM

  • Getting Windows Username In A Page

    Hello,
    I am currently developing an application that requires to know the Windows username, these are generic and will be used as a terminal. I was wondering if it is possible to get this information? I know I can use javascript and a active x control but I don't really want to go down that route.
    Our technology stack is:
    Apex 4.2.2.00.11
    Apex Listener 2
    Oracle 10g, 10.2.0.4.0
    Thanks,
    Paul.

    Here's a barebones script that you can call from a script in your form to retrieve the login name of the user:
    // Folder-level JavaScript function
    var getLoginName = app.trustedFunction(
        function () {
            // Get and return the user's login name
            app.beginPriv();
            return identity.loginName;
            app.EndPriv();
    This needs to be included in a JavaScript file that's installed in the correct location. It's just a text file, so you can create/edit it with a text editor, but make sure the extension is ".js". For more information about how to determine where to place the file, see: http://acrobatusers.com/tutorials/2006/folder_level_scripts
    More information on all of this is in the Acrobat JavaScript reference: http://www.adobe.com/devnet/acrobat/javascript.html
    To populate a text field with the login name, do something like:
    // Populate field with loginName
    getField("text1").value = getLoginName();
    Change "text1" with the actual name of the field in your form. You can place this code in a document-level JavaScript so it executes when the form is opened.
    Note that all of this code is the bare minimum, and you may want to expand it to check for errors, etc.

  • Getting Windows 7 on the Mid 2011 MacBook Air EASILY *TESTED*

    Greetings!
    As this is my first post, I wanted to make it count. Thus I have decided to compile a simple guide on EASILY getting Windows 7 installed on to your mid-2011 MacBook Air.
    I have been following the many threads around here regarding the trouble people are having getting Windows 7 installed on to their Mid-2011 MacBook Air's. I have read complaints of Windows Support Software (drivers) downloads taking too long, of not being able to save the Windows Support Software correctly to a USB key, etc, etc.
    The following process is relatively simple, but not as simple as it should be. I'm quite certain as Lion matures, some of the Bootcamp issues we have been having will be remediated.
    This procedure has been tested on the following platform:
    Mid-2011 11" MacBook Air ~ 1.6GHz i5, 4GB RAM, 128GB Flash (SSD) HDD
    What's Wrong?:
    1. On the MacBook Air platform specifically, users are expected to have a Windows 7 ISO before beginning. Some users have stated that this can be accomplished easily using the DISK UTILITY ISO CREATION FEATURE. THIS WILL NOT WORK. THE MOST IMPORTANT ASPECT OF PUTTING THE WINDOWS 7 ISO ONTO A USB KEY IS MAKING IT BOOTABLE! You need to make the USB key you're installing to bootable, plain and simple.
    2. I tested the Windows Support Software drivers after downloading them and the Intel HD3000 GPU and Sound Drivers do not install properly.
    3. Creating a Windows 7 Startup Disk through Bootcamp hangs.
    What You'll Need:
    1. A Windozzze box
    2. A DVD-ROM Drive
    3. Internet Access (for downloading a Win7 ISO in case you don't have a Win7 install DVD and other necessary utilities)
    4. ISODisk - http://www.isodisk.com/ - 100% FREE
    5. Windows 7 USB/DVD Download Tool - http://download.cnet.com/Windows-7-USB-DVD-Download-Tool/3000-18513_4-10972600.h tml- 100% FREE (you may also acquire this tool from Microshaft)
    6. A little patience
    7. A LEGAL Windows 7 license to activate Windows 7 after 30 days.
    8. 2 FORMATTED USB DRIVES.
    NOTE: Technically you only need 1 USB drive, however, you will need to get the Bootcamp drivers from OS X onto a USB key. To make this easy, the Windows 7 USB/DVD Download Tool will format one drive as an NTFS partition and the other drive should be formatted as a simple MS-FAT partition (can do this through DISK UTILITY, if you don't know how, Google it, very simple).
    Let's Get'r Done:
    1. Boot up your Windoze box.
    2. Insert your Windows 7 Install DVD into your DVD-ROM.
    3. (OPTIONAL) This step may be performed in lieu of step #2 if you don't have a Windows 7 Install DVD, download a Windows 7 ISO (don't download illegaly) from Microsoft. You may skip to step #6 if this is how you're to proceed.
    4. Download and install ISODisk.
    5. Create an ISO of your Windows 7 Install DVD - Select the DVD within the ISODisk app, choose a name and save location, create your ISO. *This takes a bit to complete*.
    6. Download and install the Windows 7 USB/DVD Download Tool.
    7. Open the Windows 7 USB/DVD Download Tool, ensure you have inserted the USB key you intend to use for Windoze 7, once the ISO has been created from step #5 or you already have one from step #2, select the USB button and create your USB/Windows 7 ISO Disk (all this does is place the necessary Windows 7 boot files on the USB key so that the Windows 7 ISO may be booted from the USB key).
    8. Once complete, safely eject your Windows 7 USB key and move on over to your beautiful Mac. Place the Windows 7 USB Key aside for the time being.
    9. Once booted, place the second USB key (the USB key you intend to use for your Bootcamp drivers) into your beautiful Mac. Ensure that it's formatted as MS-FAT, you can do this via DISK UTILITY, Google it if you don't know how.
    10. Navigate to Mac HD --> Library --> Application Support --> Bootcamp --> Here you will find a BootCamp DMG file, this is a large file that contains the necessary Windoze 7 Drivers for the MacBook Air, DOUBLE-CLICK IT TO MOUNT IT, a FINDER window will appear revealing its contents. Perform a Shift-A to select all files, RIGHT-CLICK and select COPY.
    11. DOUBLE-CLICK your MS-FAT USB key, PASTE the files from step #10 onto the drive. You now have your Windows 7 Driver disk. Place the Bootcamp Drivers USB Key aside for the time being.
    12. Open the BOOTCAMP ASSISTANT, this is located in your Mac HD --> Applications --> Utilties Folder.
    13. IMPORTANT!!!
    Uncheck "CREATE A WINDOWS 7 INSTALL DISK"
    Uncheck "DOWNLOAD THE LATEST WINDOWS SUPPORT SOFTWARE FROM APPLE" - At least for now to get you up and running.
    14. Ensure that "INSTALL WINDOWS 7" is SELECTED and click continue.
    15. Insert your Windows 7 ISO USB Key into your beautiful Mac.
    16. Partition your drive accordingly, create the Windows 7 partition (the Windows 7 USB Key needs to be in the Air for this).
    17. As soon as the partition is created, your air WILL REBOOT, the Windows 7 install will begin.
    18. You will be prompted that the BOOTCAMP parition is not NTFS and needs to be in order to install Windows 7, THIS IS FINE.
    19. Click FORMAT, the BOOTCAMP partition will be formatted as NTFS. Select the same partition number and continue. NOTE: The Windows install IS VERY fast on your beautiful SSD equipped Mac.
    20. Once the installation completes, insert your USB Bootcamp key.
    21. Navigate to the Setup.exe file on the key and double-click.
    22. Sitback and let the Bootcamp drivers load. Windows 7 will reboot.
    23. Install your Windows updates and reboot.
    24. Reboot again and HOLD THE OPTION KEY, this will allow you to get back into your Mac.
    25. Once in OS X, click settings and STARTUP DISK, select OS X (unless you want to mainly run Windoze).
    26. Finished.
    Please let me know if you should have any questions.
    You should now have a fully functioning Windows 7 Bootcamp install with all drivers properly installed. You can check this by navigating to Device Manager within Windows and ensuring that you have no yellow exclamation marks.

    Sorry, must have been the crackpipe I smoked last night! LOL
    You won't see anything in the Application Support --> Bootcamp folder unless you have previously downloaded the Windows Support Software. Good find.
    ADDENDUM STEP:
    This step should be placed between 9-10.
    Open Bootcamp Assistant. Uncheck everything BUT, "DOWNLOAD THE LATEST WINDOWS SUPPORT SOFTWARE FROM APPLE". You will be prompted to burn the image to a CD/DVD or save to a USB Key. Save the image to a USB key. This will format your USB key properly in preparation for the files. The download commences and if you're lucky, the files will simply be saved to your USB key without having to manually copy them over to the key using the steps above.
    IMPORTANT - Even if the support software hangs when its being saved to the USB key, you should now be able to navigate to the directory and see the image. Follow the steps above.
    Apologies for missing this.
    Best,
    WBN

  • !!??? WAN IP?? How to get WAN IP of the client computers..?

    Hi,
    How can I catch the WAN IP of my client computers?? The clients are behind a router and I don't wanna put the code on the client side. I wanna do it using Java Web Service Call.
    Any idea how to go about..?

    Are you writing a client application that will detect
    it's internet gateway address from within an
    intranet? Or is the application a server that
    receives client connections?The application is a server which will receive client connections and I need to get the WAN/External IP using Java Web Services. How do I go about it?? I'm not aware of it!!
    Any help appreciated.

  • Why do we not get logging output for the clients?

    Q: Why do we not get logging output like #show log all | include <client mac address> for the wireless clients?
    A: When the clients connected to Bridge mode SSID, Firewall hits and logging does not work.  
    This is one of the limitations with bridge mode.  

    logical. fair. I can understand the confusion in policy  as another fine cloud service - DropBox - has a different model for increases in free storage amounts for one account = evangelism. As many policies as there are services probably.
    cya 'round o' kilted one
    CCC

  • How to get Windows to see the NVIDIA graphics card on y Macbook pro?

    I'm using Windows 7 on Bootcamp on my 15" macbook pro with retina display. I want to use a programme that requires high end graphics. The problem I have is that I can't get windows to recognise there is a NVIDIA graphics card in the computer. What should I do to get windows to see this card?

    last reply
    https://discussions.apple.com/thread/4908011

  • I can't open a file on Pages'09 4.1    I get  window that says "The required index.xml file is missing."  How do I get this file open?

    I have a file that I havel been adding to for years. I opened it a week ago but today I tried and I got the window message
    "the required index.xml file is missing"  How do I get this to open?
    I have Pages '09  4.1  Not sure when that was put on or updated.
    Thanks for any help you can give
    Teacher72

    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=308&mforum=iworktips ntrick
    Are you sure you haven't upgraded Pages on your Mac to Pages 5?
    Check your Applications folder and the Applications/iWork folder. You may have 2 versions on your Mac.
    Peter

  • How can i get windows drivers for the 2013 MacBook Pro Retina?

    Hi there,
    today I have installed on my late 2013 MBP retina via the Boot Camp Windows 8.1. The installation was smoothly but some drivers are not present including the wifi driver.
    Through online research, I found out that in the current version of Boot Camp no drivers for the 2013 model are listed. Do you have one probably have an idea how to get it to run anyway?

    For feedback from experienced users,  post in the Final Cut Pro X forum here.
    They should be able to offer suggestions for training.
    Apple - Final Cut Pro X - Resources

Maybe you are looking for