How to identify different users on a network

I have a program that is currently located on a server and is being used by a number of different people. I am trying to get the jfilechooser to be able to remember a current directory from session to session, basically the last directory a given user opened a file from.
My problem is that each user will have a different current directory (usually on their desktop) at any given time. Is there a way to identify the user so that jfilechooser can have the correct current directory?
Thanks

i would imagine so
as long as you have a username to identify each user (i.e. they login), you can lookup their personal preferences however you like
Edited by: SoulTech2012 on Aug 8, 2008 11:17 AM

Similar Messages

  • How to identify the user who created the variant

    Hi All,
    Can anyone tell me how to identify the user who created the variant ?

    Hi Dear,
    For the same go to SE11 and view the table "VARID". This table give the details of the program,user,variant etc.
    From this table u can know which user created the variant. Hope this solve your purpose.
    Regards

  • How to identify a user across multiple pages

    Hi,
    I'm doing a homebanking and I would like to know how to identify a user across multiple pages.
    I have already take a look at HTTPSESSION, but I didn't understand.
    Can someone help me.
    I'm send the servlet Logon.
    import java.io.*;
    import java.sql.*;
    import java.util.Date;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Cons_logon extends HttpServlet
         private Connection conexao = null;
         Login1 login1;
         public void init (ServletConfig cfg) throws ServletException
              super.init(cfg);
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   conexao = DriverManager.getConnection("jdbc:odbc:bank");
              catch (Exception e)
                   System.out.println(e.getMessage());
         public void doPost (HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException
              String Suser, Spassword;
         PrintWriter out;
              res.setContentType("text/html");
    out = res.getWriter();
    String opcao = req.getParameter("log");
    Thanks

    I would recommend using the authentication mechanism that's guaranteed by the servlet spec. If you do that, you can just call
    request.getRemoteUser()
    to get the user name across multiple pages.
    If you want to use your own login scheme, you can create a new session object and map it to a user name somewhere in your app. Or you can just put the name of the user on the session. But the preferred way is to use the default authentication scheme defined by the spec.

  • How to make different users to use different Plan_Tables?

    How to make different users to use different Plan_Tables?
    I want each user use his own's Plan_Table. How to achieve this goal?

    qkc wrote:
    How to make different users to use different Plan_Tables?
    I want each user use his own's Plan_Table. How to achieve this goal?Which version of Oracle - if you're on 10g or later you are already (effectively) doing this.
    If not, then copy the 10g strategy back to your version; in outline:
    <ul>
    drop all existing plan tables
    create a table (but call it plan_table$) in the SYS schema (you may prefer to use SYSTEM) as a global temporary table on commit preserve rows
    create a public synonym plan_table for plan_table$
    grant select insert update delete on plan_table to public
    </ul>
    Look in $ORACLE_HOME/rdbms/admin/catplan.sql in a 10g version of Oracle to check how it's done.
    Each user gets a private (temporary) table in their temporary tablespace whenever they use the plan_table
    Their private data disappears when there session ends.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    There is a +"Preview"+ tab at the top of the text entry panel. Use this to check what your message will look like before you post the message. If it looks a complete mess you're unlikely to get a response. (Click on the +"Plain text"+ tab if you want to edit the text to tidy it up.)
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to see wifi users on my network

    How to see wifi users on my network.
    My new router simply slows down at times for no apparent reason.
    Every time I restart it (unplug) th speed pops back up.
    I think my neighbor may e watching a ton of movies or something.

    What new router do you have?
    If it is Apple, see below.
    Open up Airport Utility in your Utilities folder.
    Option/Double click your Airport Base station.
    There you can see all the wireless clients that are on your network.

  • Share the same files to different users over the network

    Hi,
    I have a server running in my home network and want to share my photos accross the network. The photos have to be accessable from linux and windows clients and from different user accounts. The filesystem to share is btrfs right now. I would like to stick to it, but if this should turn out to be an issue, I will change it to s.th. else. I could use samba with a dedicated samba user or ftp, but both solutions feel hacky to me. Is there a better approach to the problem?
    Thanks,
    Wolfgang
    Last edited by ReedWood (2013-09-13 08:32:26)

    Personally I'd go with an ftp server since I got that to work in the past but samba might do a decent job, too (don't know, never used it). But you can also just set up a web server to share your pics (maybe with a nice gallery web app?). The technology used itself does not matter that much.
    Now, on to the important question: What about security? Do you need some kind of authentication or can you get away without any login stuff (since no bad guys can connect to your network anyway)?
    FYI I used vsftp and pam as described at http://www.cyberciti.biz/tips/centos-re … users.html to get my ftp server running. You might be able to expand this to other solutions as well. I had to password protect my ftp server since I wanted to have write permission, too. For read only I might have been fine with anonymous ftp back then.

  • How to identify different connections/clients from RMIServer???

    Anyone knows how one can do to identify different connections or clients from the implementation/server-object in RMI?? Do I have to send a hostname from the client via method parameter?? If so, any recommendations on which unique name to use??
    Would really appreciate any answer to this!!! - thanx in advance!
    ps; tried currentThread.getName(), but it would return different names from same client (changing at each call).
    /Alejandro

    Hi,
    in order to identify clients I maintain a hash with references to
    the clients. The clients register and unregister with special
    remote methods of the server RMI object.
    I didn't see an API in RMI to do this for me. And it was fairly easy to implement.
    Have fun,
    Klaus

  • How to create different users in a unique project?

    Hi,
    We are able to create different users in security manager,but it is not possible to grant privileges accordingly.According to our requirement we need different users with different granting privileges so that our work should be secured.After login with different user we are getting the below error
    com.sunopsis.core.SecurityAccessException: com.sunopsis.core.SecurityAccessException: You are not authorized to View the Object:SNP_TECHNO : Oracle / 1999
    Thanks
    Suresh

    Hi there,
    I am also receiving this same error and I'm not sure what you mean by granting the users the correct access to the Topology items. I mistakenly deleted the CONNECT profile and I have re-created it with all of the same objects it had in it before but it is not letting my users in and fails with this same error..
    However, the supervisor and the any of us admins that are marked as supervisors can still get in no issues..
    Please help!

  • How to get "fast user switching" and network shares playing nice

    I've been alternating between banging my head against a wall and reading every forum I could find to try and get a reasonable compromise between using "Fast user switching" and sharing a folder from a file server.  It baffles me how the network share/mount model of OSX/AFP is completely killed by fast-user-switching; this is a big problem with Apple requiring users to be actively logged in to share music/video from iTunes which therefore essentially requires fast-user-switching if anyone else wants to use the computer.  (anyone find it odd that you can share files without being logged in, but sharing songs requires an active login for each user who is sharing?  Apple: time to make iTunes sharing a service!)
    For the sake of example, lets just say I want to share my /Groups folder from my desktop and have it be accessible to my laptop.  Here are all the things that I tried:
    Apple Method 1) Share /Groups in the Server.app on the desktop (running Lion Server), use finder on the laptop and drag the share icon to "Login Items", alternative use a startup Apple script using "mount volume"  Both of the options work and will mount the /Groups folder under /Volumes/Groups, of course when the second person logs in via fast-user-switching (and occasionally the first person for no apparent reason), they will get /Volumes/Groups-1 since /Volumes/Groups is already taken.  Tomorrow we log in a different order and now the previously /Volumes/Groups-1 user has their mount at /Volumes/Group and vice versa.  Any links, aliases, finder sidebar references, and application settings which pointed to yesterday's location are now BROKEN.  Not very user friendly to my mother-in-law who is trying to find those pictures of the kids and doesn't know anything about mount points. I also can't reasonably mirror the file location structure on the desktop so that application preferences that are synced between the two (portable home directories) work.   fail.
    Apple Method 2) Use automounter and set up by hand direct maps for /Groups or an indirect maps for the children of /Groups.  Now it will automatically get mounted to /network/servers/SERVER/Groups/ on the laptop and on the desktop it will automatically create a similar symlink structure so that the same path (/network/servers/SERVER/Groups) work both on desktop and laptop.  Cool.  Except when the second person logs in, the /network/servers/SERVER/Groups/ mountpoint is already owned by the first user and they don't have any permissions to access it.  Fail.
    Apple Method 3) Use mount_afs and specify directly the mount-points.  Have each user have their own startup AppleScript which mounts /Groups to a different location (e.g. /Users/Shared/username/Groups) that way they don't conflict with multiple users.  On the desktop, set up symlinks from /Users/Shared/username/Group to /Groups so that it will be the same as the client and applications settings will work when synchronized back/forth by portable-home-directories.  Will it work, yes it does, but what a bear to maintain.  Is this really what I should expect to do just to have multiple users on my desktop and laptop (which again is essentially required now if I want to do any type of iTunes sharing).  This can't be what apple expects.
    What I ended up doing - the "not quite apple" solution.
    Non-Apple Method 4) After a read of "Autofs: Automatically Mounting Network File Shares in Mac OS X" (http://images.apple.com/business/docs/Autofs.pdf) at the very end there is a single paragraph  of "Kerberized NFS": "A Kerberized NFS mount can have multiple connections from multiple users, each using the correct user’s credentials for each transaction. This allows administrators to support multiple users, each authenticated with their own credentials to the same mount point. This is very different from AFP and SMB mounts," (emphasis mine)
    It appears that by using good 'ole NFS (abeint with Kerberos for security!) you can actually have multiple users on the same mount point.  Roughly following the guidance at https://support.apple.com/kb/TA24986?viewlocale=en_US.  What I needed to do was:
    1) create /etc/exports on my desktop and add a single line "/Groups -sec=krb5".  The existence of /etc/exports triggered a start of nfsd which no longer has any GUI options in Lion.
    2) Add a line to /etc/auto_master on my laptop "/-  auto_mymounts" to reference a new direct map.
    3) Create /etc/auto_mymounts and add a single line "/Groups         SERVER:/Groups" to create the direct map.
    THAT'S IT.  Three lines in three files.
    Now when I log into my laptop, there is a /Groups that is a network mount of my desktop's /Groups, same location AND it works for all of my users, even simultaneously. 
    In the end I'm happy with what I've got, but man was this a difficult path just to support fast-user-switching.  In Lion, Apple appears to be getting away from NFS (no longer turned on by default and remove from the GUI controls) but clearly this really useful functionality which doesn't exist in AFP. 
    I'm really curious, after all this work.  Any other ways to accomplish this?

    In my example above, yes I chose to mount the share "Groups" to the top of the root since that is where I put it on my server and I wanted to keep them similar; but that was just my preference, it isn't a requirement.  You can export and mount from other directories.

  • How to create different users in the same iPad 4?

    I would like to share my new iPad with other person. How can I create two users.?

    The iPad does not support multiple user accounts.

  • How to use a user over the network???

    My point is, that i have a Mac on my room and let's say that i want to use my user on my mac which is in my room in another Mac which is connected to my tv. I dont think there's a way to do that, but in my opinion is why not to make it possible... login to your user from a mac to your mac...

    You can screen share by enabling it in the sharing prefs.
    If you just want to use the user without screen sharing, you have to do some complicated remote user thing that I couldn't figure out how to do on my Mac Mini...

  • How to identify the user who has created accounts,lead, Opp in portal

    Hi experts,
    I am working in CRM 5.0 now i want to know the user who has created a particular account, Lead, and opportunity in Portal not in GUI kindly give some inputs regarding this .
    Thanks in advance
    Amar

    Hi Frederic,
    Thanks for your reply.
    But is there any way by which we can make it happen in PCUI.
    The customer is very particular about it. They use only PCUI to create new accounts and they want a facility to view change history in PCUI Account Application itself. They are not interested to go back to GUI to know change history for that BP.
    We have just checked whether any related BSP structures containing change fields are assigned to COMM_BUPA but not successful.
    Kindly help with a possible solution.
    Regards,
    Amar

  • How to identify a user-change in USEREXIT_CHECK_VBAP

    Hello,
    I am writing a bit of code that will overwrite the payment terms in a sales order item based on a number of factors. (ship-to, incoterms, document type, etc)
    I am using the following program  MV45AFZB at Exit : USEREXIT_CHECK_VBAP. I am using this exit as the users need to see the payment terms after an item has been entered into the sales order and not have the value determined at sales order save.
    I am not using USEREXIT_MOVE_FIELD_TO_VBAP as it is only triggered once at the time of creation and not when I change the document. I need it in USEREXIT_CHECK_VBAP as users could change the incoterms  in VA02, so the code must be redetermined.
    My code is working as expected, however, I have a problem when a user enters a sales order item line and then manually changes the payment terms, as my code then is over writes the users values.
    The flow is as follows
    As user creates a sales order
    They populate the sales order header
    They populate material number and qty
    User exit USEREXIT_CHECK_VBAP is triggered and correctly determines the payment terms
    The user then double clicks on the sales order item and decides to overwrite the payment terms.
    My user-exit is retriggered and check to see if XVBAP-UPDKZ = I (insert)
    As it is still an insert, my code triggers.
    I have tried to check YVBAP, but no entry exist as it stills is seen as in insert? What I really need to know that while it is still an insert, the user has change the field value and my code should not over write the users value.

    Hi
    Please, read carefully SAP Note 178328 - Problems due to incorrect user exits in SD.
    It says:
    In general, the following connection exists between the update indicator
    and the Y tables:
       o When you create a document, only the update indicator 'I' can exist
       in the X tables (or sometimes the update indicator remains
       initial). No records exist in the Y tables.
      o When you change a document, the following cases may occur:
         - You add a table entry. There is only one entry in the X table
         that has the update indicator I. There is no entry in the Y
         table.
    and it goes on with useful information.
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Feb 20, 2012 9:20 AM

  • How to identify different environments (Self Service)

    Hi
    with Forms, we can set site level profile option for sitename, and this will display PROD, TEST, DEV etc.
    Is there anyway we can do this with the self service side of Apps ?
    Or, does anybody have any other ways to tell user which environment they are connected to ?
    Many thanks

    Hi Hussein
    thanks for the reply. However, as you know, this applies to individual pages and has to be applied for every individual self service page.
    I want to be able to do this for ALL pages in the same way as you can do with the site profile opition for forms.
    I dont want users to have to personalize their pages.
    Thanks

  • How to sync different users calendars

    We have 2 users, 2 Macs & 2 iphones.  Each user syncs with their own calendars, addresses, etc.  We would like to sync all to 1 icloud account, but still keep the info separate.  What is the most effecient way to do this?

    You can share iCloud calendars in both the Calendar app and in the iCloud web interface.
    I can't provide much more than that, though as I haven't shared any myself.

Maybe you are looking for

  • Help needed in activating and deactivating a window

    In my GUI, I have created a window, that is having one textfield, one label and 2 buttons named "Enabled" & "Disabled" . MY requirement is: After execution of the window when I will click "Disabled" button, the window should be deactivated, even I ca

  • TS1496 My ipod touch will not download lates version of itunes.  Our pc is windows and we also have a shuffle and it works fine.

    My ipod touch will not download latest version of itunes 11.  Our pc is windows. Itunes cannot find the device to sync because it all relates back to not being able to downloand the latest version of itunes.  We also have a shuffle and it works fine.

  • TDS deduction and excise entry

    Dear Experts, Scenario1: Vendor is required to deduct the TDS but need not required to deduct the excise? What to to? Scenario2: What is the entry for deduction of excise in for purchasing of material? Thanks in advance for helping me. Thanks&Regards

  • Scenario in Analysis Authorization to check

    Hi Gurus, I am doing a POC for Migration of Analysis Authorization Migration. In which there isone scenario that we want to check. The Scenario is for Single user. User having access to 2 different Cubes:- Cube 1                                      

  • FLV Video - Alpha Layer Not Working

    Hi I have a strange problem. I am trying to encode a AVI video into a FLV flash video which includes an alpha layer. These are the steps I have taken as follows: 1. Created animation in photoshop, saved as PNG files. Imported files into Flash, and th