Users loged in

How to fine out how many users loged in in iFS

Yep, use the files admin login link:
http://hostname.domain:port/files/app/AdminLogin
Login as the filesadmin user - or the username you specified as the subscriber administrator .
That done, click the subscriber tab. On that page there is a section called: 'Subscriber Information' - you'll see a line telling you how many users are connected.

Similar Messages

  • Login Problem when two users loging in at a time

    Hi,
    If two uses are loging in at a time in my application
    1.It is displaying crah page for one user and another getting wrong permissions.
    2.some times both getting wrong permissions.
    can you show me any suggestion to solve the problem

    A tiny bit of detail would have been useful. Most of the mind readers left after the last L&F change.

  • Getting the name of the current user loged in with j_security_check

    Is there any method or way of getting the username of the current user
    which is logged in via the j_security_check?
    thanks

    <p>
    <strong><font face="courier new,courier" size="2">FacesContext ctx = FacesContext.getCurrentInstance();</font></strong>
    </p>
    <p>
    <strong><font face="courier new,courier" size="2">ExternalContext ectx = ctx.getExternalContext()</font></strong>
    </p>
    <p>
    <strong><font face="courier new,courier" size="2">HttpServletRequest req =  (HttpServletRequest)ectx.getRequest()</font></strong>
    </p>
    <p>
    <strong><font face="courier new,courier" size="2">String user = (String) req.getRemoteUser();</font></strong>
    </p>
    Kuba

  • Log of users loged in SPRO

    some one has deleted Major part of configuration using SPRO, kindly help me out to find out that how can I find out the log of user who had access SPRO, and deleted the data.
    Please help me out

    Hi,
    You find the users who used SPRO transaction from STO3N trnasaction,
    In St03n transaction select the day/week on which you suspect the changes 
    were made, then go to transaction profile, then select the SPRO transaction
    and on double on the that, you can see all the users who has used this transaction.
    Hope this helps.
    Regards,
    Vijay.

  • User Authorisations in Dialog Programming.

    Hi Friends,
    I have a small requirement, I want to create user authorisations in dialog programming.
    Actually client requirement is he want to enter absence details of each and every branch.
    For that i have created a cusom table and i  also i have developed a dialog program inorder to update the details
    and to retrive all the data i have created a report program also.
    Now the client requirement is he want user authorisations while updating the data through dialog programming, that means if a user loging in that particular branch he want to enter the absence details pertaining to that branch only, when he tries to enter the details of other employee pertaining to another branch an error should be raised.
    Actually in the client place they are using authrisation object as 'Z_WERKS'.  The basis person has created this and provided for me.
    Actually i have created an Authority check in module pool program.Here iam attaching my prog,
    Pls provide me the sample code if at all available.
    *& Include ZEMPTOP                                           Module pool
    PROGRAM  ZEMP.
    TABLES : ZABS,PA0001.
    DATA : WA_PA0001 LIKE PA0001,
           V_ANS.
    DATA: BEGIN OF Z_WERKS OCCURS 0,
            PERSA LIKE T500P-PERSA,
            NAME1 LIKE T500P-NAME1,
          END OF Z_WERKS.
    *&  Include           ZEMPI01
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
    WHEN 'DISP'.
    SELECT SINGLE * FROM ZABS WHERE PERNR = ZABS-PERNR.
    IF SY-DBCNT <> 0.
    *MESSAGE I000(Z00) WITH 'Details of' ZABS-PERNR .
    else.
    MESSAGE I000(Z00) WITH 'No Details Available to Display'.
    ENDIF.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
    LEAVE TO SCREEN 0.
    WHEN 'CLS'.
    CLEAR ZABS.
    WHEN 'INS'.
    INSERT ZABS .
    ZABS-ABWTG = ZABS-ENDDA - ZABS-BEGDA + 1.
    IF SY-DBCNT <> 0.
    MESSAGE I000(Z00) WITH 'Personnel No' ZABS-PERNR
    'inserted successfully'.
    ENDIF.
    CLEAR ZABS.
    WHEN 'MOD'.
    UPDATE ZABS.
    ZABS-ABWTG = ZABS-ENDDA - ZABS-BEGDA + 1.
    IF SY-DBCNT <> 0.
    MESSAGE I000(Z00) WITH 'Personnel No' ZABS-PERNR
    'Modified Successfully'.
    ENDIF.
    CLEAR ZABS.
    *WHEN 'DEL'.
    *CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA'
    EXPORTING
       TEXTLINE1           = 'ARE YOU SURE'
       TEXTLINE2           = 'YOU WANT TO DELETE'
       TITEL               = 'CONFIRMATION'
       START_COLUMN        = 25
       START_ROW           = 6
       DEFAULTOPTION       = 'N'
    IMPORTING
       ANSWER              = V_ANS.
    *IF V_ANS = 'J'.
    *DELETE ZABS.
    *IF SY-DBCNT <> 0.
    *MESSAGE I000(Z00) WITH 'Personnel No' ZABS-PERNR
    *'Deleted Successuflly'.
    *ELSE.
    *MESSAGE I000(Z00) with 'No Record to Delete'.
    ENDIF.
    *ENDIF.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  GET_REC  INPUT
          text
    MODULE GET_REC INPUT.
    SELECT SINGLE * FROM PA0001 INTO WA_PA0001
             WHERE PERNR = ZABS-PERNR.
    MOVE: WA_PA0001-PERNR TO ZABS-PERNR,
          WA_PA0001-ENAME TO ZABS-ENAME,
          WA_PA0001-GSBER TO ZABS-GSBER,
          WA_PA0001-WERKS TO ZABS-WERKS.
    ZABS-ABWTG = ZABS-ENDDA - ZABS-BEGDA + 1.
    ENDMODULE.                 " GET_REC  INPUT
    *&      Module  CHECK_AUTH_WERKS  INPUT
          text
    MODULE CHECK_AUTH_WERKS INPUT.
    *SELECT PERSA INTO TABLE _WERKS FROM T500P
            WHERE  PERSA = ZABS-WERKS.
    AUTHORITY-CHECK OBJECT 'Z_WERKS'
    ID 'PERSA' FIELD Z_WERKS-PERSA.

    You need to test the sy-subrc after the authority check - that will indicate whether the user has the authorisation or not.. you also often include the activity being tested e.g. generally 03 = Display, 02 = Update etc
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
      ID 'ACTVT'    FIELD '03'
      ID 'CUSTTYPE' FIELD 'B'.
    IF not SY-SUBRC is initial.
      MESSAGE E...   "put your exception here...
    ENDIF.
    see [Programming Authorization Checks  |http://help.sap.com/saphelp_nw04/helpdata/en/52/6712ac439b11d1896f0000e8322d00/content.htm] for more info.
    Jonathan

  • In FireFighter ID after loged in, can Reason and OR Activity screen be mand

    Hello All,
    for Tcode = /VIRSA/VFAT - Firefighter
        Please help, Some one with SAP FireFighter ids experience.
    Once a user loged in as a FireFighter in the Compliance Callibrator, screen pop up asking to enter Reason and Activity need to be performed before a User can take any action or can go any further.
    My question is that, is there any way under FireFighter configuration or so that, the Reason / Activity field can be mandatory?
    Because in our environment most of the users are not entering Reason or Activity they are performing
    please if you know the answer, let me know ASAP.
    Thanks in advance!!!
    Syd.

    Hi Syd,
    I've verified further and find that you can implement text field restrictions in /VIRSA/ZVFAT ABAP program. Check for the below lines:
    data : desc(128), desc1(128), comment(255).
    **Reason And Activity
    data : it_reason like /virsa/reason occurs 0 with header line,
           it_activity like /virsa/activity occurs 0 with header line,
           it_thead like thead,
           it_thead1 like thead,
           it_line like tline occurs 0 with header line,
           it_line1 like tline occurs 0 with header line.
    data : rcode like /virsa/zffrcd-rcode.
    data: t_path1 type string.
    Your ABAPer is the best person to implement this restriction
    Regards,
    Raghu

  • Active user List

    Hi
    I am using 10.1.3.4 OBIEE.
    How to find what are the user loged in Presentation services.
    e.g
    User1 loged in Answer page,he is looking into Dashbord 1
    User2 loged in looking into Dashboard2
    User3 is administrator.He want to know,what are the users currently active?
    Thanks
    Govind R

    Hi Muram,
    May i know to which window it(below URL) is taking us...     this is the first time I seeing this I want know details about it..
    http://<MyHostName>:9704/analytics/saw.dll?Perfmon..
    and I want is there any way to navigate to this window from settings-->Administration-->Manage sessions...

  • I've got "Preference Error: Could not load Users

    I've  been using OS X Lion (clean installed) on my Macbook Air.
    Today, I activated "Guest User" loging.
    After I "deactivate" it, I no longer access "Users & Groups" on the System Preference.
    I just get:
    Preference Error.
    Could not load Users & Groups preference pane.
    Has anyone had the same experience?
    Rgds,
    masa

    I am experiencing the same error.
    I was running OS X 10.6.8 (with the supplement 10.6.8 v1.1). I regularly repair permissions, once a month or so. Other control panels seem to work, just not this one.
    Oddly, the Parental Controls pref pane shows "Guest account" and "Guest account1". These would seem to give a little bit of credibility to the idea that something is messed up with the guest account after upgrading to Lion. Also, neither guest account could be deleted from the Parental Controls pref pane, even though there is a minus button which ostensibly allows you to do that. I get a confirmation, "Are you sure you want to delete the user account "Guest Account"? The user account "Guest Account" will be deleted permanently." But if I click OK, nothing happens. Same for both guest accounts.

  • User novell CIFS error -1642

    Hi,
    I have problem with user login to novell-CIFS. User have set Universal password.
    Admin log to novell-CIFS successfly.
    SLES 10 SP4
    OES2 SP3
    nmas-method cifslinlsm is installed
    lsof -p `pgrep ndsd` | grep CIFSLINLSM[_X64]
    ndsd 6017 root mem REG 8,3 630776 3902982 /var/opt/novell/eDirectory/data/nmas-methods/CIFSLINLSM_X64
    cifs log
    Nov 27 10:33:49 oes CIFS: EVENT: ENTRY: ********** CIFS server started ************
    Nov 27 10:33:49 oes CIFS[8340]: WARNING: ENTRY: Auditing interface not initialized.
    Nov 27 10:33:49 oes CIFS[8340]: WARNING: RPC: requestNumber: fadebad1 events: 3ff domainpath /tmp/.ncp2cifs
    Nov 27 10:33:51 oes CIFS[8340]: WARNING: ENTRY: Interface lo is skipped from populating for name resolution
    Nov 27 10:33:51 oes CIFS[8340]: WARNING: ENTRY: Interface sit0 is skipped from Populating for name resolution
    Nov 27 10:33:51 oes CIFS[8340]: WARNING: ENTRY: Interface lo is skipped from populating for name resolution
    Nov 27 10:33:51 oes CIFS[8340]: WARNING: ENTRY: Interface lo is skipped from populating for name resolution
    Nov 27 10:33:51 oes CIFS[8340]: EVENT: ENTRY: CIFS context list initialized
    Nov 27 10:59:41 oes CIFS[8340]: WARNING: CODIR: SESNotLoggedIn: Failed to authenticate user: Administrator from 172.16.200.55, nwErr: -1642, cifsErr: 0
    Nov 27 10:59:41 oes CIFS[8340]: WARNING: AUTH: SessionSetup : Login Failed -nwLoginError is -1642, cifslogin err 0, dest ip :172.16.200.55
    Nov 27 10:59:41 oes kernel: audit(1354010381.426:22): user pid=8340 uid=0 auid=4294967295 msg='CIFS: Failed to authenticate user: Administrator from 172.16.200.55 on Tue Nov 27 10:59:41 2012
    Nov 27 10:59:55 oes CIFS[8340]: WARNING: AUTH: Authentication failed due to password mismatch for user , Err :-1642
    Nov 27 10:59:55 oes CIFS[8340]: WARNING: CODIR: SESNotLoggedIn: Failed to authenticate user: Administrator from 172.16.200.55, nwErr: -1642, cifsErr: 0
    Nov 27 10:59:55 oes CIFS[8340]: WARNING: AUTH: SessionSetup : Login Failed -nwLoginError is -1642, cifslogin err 0, dest ip :172.16.200.55
    Nov 27 10:59:55 oes kernel: audit(1354010395.462:23): user pid=8340 uid=0 auid=4294967295 msg='CIFS: Failed to authenticate user: Administrator from 172.16.200.55 on Tue Nov 27 10:59:55 2012
    Nov 27 11:10:23 oes CIFS[8340]: WARNING: AUTH: Authentication failed due to password mismatch for user , Err :-1642
    Nov 27 11:10:23 oes CIFS[8340]: WARNING: CODIR: SESNotLoggedIn: Failed to authenticate user: Administrator from 172.16.200.55, nwErr: -1642, cifsErr: 0
    Nov 27 11:10:23 oes CIFS[8340]: WARNING: AUTH: SessionSetup : Login Failed -nwLoginError is -1642, cifslogin err 0, dest ip :172.16.200.55
    Nov 27 11:10:23 oes kernel: audit(1354011023.105:29): user pid=8340 uid=0 auid=4294967295 msg='CIFS: Failed to authenticate user: Administrator from 172.16.200.55 on Tue Nov 27 11:10:23 2012
    Novell admin log OK
    Nov 27 11:29:47 oes kernel: audit(1354012187.150:35): user pid=8340 uid=0 auid=4294967295 msg='CIFS: User admin successfully authenticated from 172.16.200.55 on Tue Nov 27 11:29:47 2012
    Same idea what is wrong ? Thanks

    Thanks for reply.
    When I settting novell-CIFS. Users 'Administrator' exist. I set universal password for this user (Imanager/Password/Set Universal password) same as in eDirectory.
    I try, log user "Administrator" with Novell client, >
    Confirm
    LOGIN-LGNWNT32-2032: The password for user Administrator has expired.
    Do you want to change your password? YES, I retype password. LOGIN-LGNWNT32-2070 Need another password. Password change. logout novell client.
    And now I log to CIFS with user Administrator. This is solved.
    Thanks you very match, users loging now work.
    I have another question about CIFS, we have problem with write speed to CIFS drive-its very slowly, read speed seems OK.
    j.
    Originally Posted by ab
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1
    The message states the password is wrong, though I suppose that could
    also mean that the username is wrong (just guessing). Does this user
    ('Administrator') exist, and is its password set as you think it is?
    Can you login with that user using any other type of client, such as the
    Novell Client, or LDAP, or iManager?
    Good luck.
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.19 (GNU/Linux)
    Comment: Using GnuPG with undefined - Enigmail: A simple interface for OpenPGP email security
    iQIcBAEBAgAGBQJQtMKeAAoJEF+XTK08PnB5riYP/0bSRFah8xjwO8HKVu2DaWu4
    cpqmQr7uloOdgXe7khb5zWHnekBIWJvA7cFz8Z3iFcwMqX9rxx juUoOB4MX9iVFB
    pENajt131g+nyxFZz65p9VIe1RELt88QxccQhr8JBjSVlTqXsv lnuuH4HChDD0uX
    R0Qp1RQBUO5p3Z3DDimtZIXzO/iJlJMhurvvkPfa8OVDoH/Uea3DNHj2qe5dHAwr
    90eWbgVAKE+n61rHYK9WC3oyqJJyWiXEbAmdiU4EMEtQA52S4K iBMOVeIoRTA01S
    eiH5Ek3ljO9GxG6QD0Aa3TFXICbUwnKW2YmdJbBA+x4z/W8ZDtZr4eXBbAOYsWJ0
    ARms9dZ2upo7ClIWnxqqSbLSwKmo0QlHTjyP+fCBtdoXd9GKfc gb54qnKKso0qsW
    vrVIynCPSUspBIjKIuY0a/+urgbQQDV6qi5C+KbroBIpcvP17wfjpAlYewiL1jNb
    zWSqrXnvhwC4RF8fQVOLY90G30B1vXWd2RZj+wKb2E89cXgOw3 JsoxiKqc7TuXiF
    rp6zQdClD71gvVcDcJa2RzUF61+KReZwhIWtJVZXkEpS6Zbvm1 86GkGQjM0uXQw2
    hqONHfbCyGgn1bLOvZiNdvDQeiuAHN1i9rzfZbp7yJjqGtj8kR/QLRsgFVygXnf8
    JUcZZ9knSx+YIB3ZLrzf
    =Lrve
    -----END PGP SIGNATURE-----

  • User Menu is blank

    Hi Experts.
    We are using Derived role concept, when user loged he unable to get User Menu, it is showing blank,
    I have applied SNOTE: 1246860 and 1459115.
    Still unable to resolve the issue.
    Release: SAP_BASIS 700 SAPKB70022
    Please help me.
    Thanks & Regards,
    Firoz.

    Update:
    cause was a weak role design.
    Expanding a folder caused MESSAGE_TYPE_X dump:
    Termination occurred in the ABAP program "SAPLOLEA" - in "AC_SYSTEM_FLU
    The main program was "SAPLSMTR_NAVIGATION ".
    In the source code you have the termination point in line 29
    of the (Include) program "LOLEAU02".
    CASE SY-SUBRC.
        WHEN 0.
        WHEN 1.
    *     system_error
          MESSAGE ID 'CNDP' TYPE 'X' NUMBER 007 RAISING CNTL_SYSTEM_ERROR.
        WHEN 2.
    *     method_call_error
    >>>>> MESSAGE ID 'CNDP' TYPE 'X' NUMBER 006 RAISING CNTL_ERROR.
        WHEN 3.
    *     property_set_error
          MESSAGE ID 'CNDP' TYPE 'X' NUMBER 006 RAISING CNTL_ERROR.
        WHEN 4.
    *     property_get_error
    Too many entries on the first menu level. so the issue described in note 362883 appeared.
    Redesign of menu structure would be the best solution, switches as per a.m. note are just a workaround.
    b.rgds, Bernhard

  • Messanger: User log-in notification.

    Hi guys.
    I am trying to find the best solution for the following requirement:
    In the Messanger application, every user has a tree of added friends to chat with. When user loged in, and the tree of friends has been loaded,  every frend name which is online, in the tree (tree node) colored with the green color.
    Later on, one more user from the tree loged in. The color of newly logged in user should be changed to green.
    What is the best way to notify the three to change a color of newly loged in user?
    I realy don't want to monitor the database every 5 or 10 or etc. seconds sending ajax or http requests. Does FLEX have some tools to do that?
    Thanks.

    Hi,
    If you're developping a messenger application, I think you already have a kind of server to client communication...
    How your client is receiving messages from others? You could use the same to transmit "service" data telling who is online or not...
    One of our application is a kind of a collaborative tool (exchange drawings and chat messages), we developped it based on the blazeDS/AMF Consumer architecture. We've build above our protocol, which transmit "service" (who's online, what is the current space share, and so on...) along with the "client" data (the messages, the files, and so on). The protocol ensure also that a message was well transmited (ACK mechanism).
    Hope it helps,
    Mich

  • Outline sync with 4 cubes or partition help req

    Hi,
    I have three huge cube's, two cubes abt 90 gb (BSO) for TY & LY data, weekly refresh with hierarchy and data on third cube (ASO). all there cubes are transparent partitioned to fourth cube.
    I have the same hirarchy in these three cubes and couple of other cubes. so is there a way to update the hierarchy on one single cube and sync with other cubes.
    please suggest me any solution .......
    I was thinking for replication partition and only sync outline is it possible?
    Edited by: user10722265 on Oct 21, 2009 9:27 PM

    Thanks Srinivas,
    yep you are correct, in regards to my questions.
    I mean you are saying to copy outline from one BSO cube to other cubes manually.or Is there any maxl command to copy outline form one cube to other.
    considering the size of the cubes, i'm planning to split the cube in to multiple, each line of buinsess (front end cube) will have there own cube instead of all users loging to one cube.
    so what i want is to maintain all hierarchy's on one cube. Then partition the dimensions pertaining to that cube only.
    what i mean is only portion of dimension will go to one cube and other portion to another cube.
    store (7)
    ->regions (12)
    -->subregions (190)
    I want 7 regions to one cube and another 5 regions to other cube.
    update hierarchy on one cube and sync to other cubes theough replication partition or other ways........i want only heirarchy sync ...........no data sync from source to target cube.
    thanks for reply srinivas
    Thanks
    srikar

  • How can I create a mobile account in Mountain Lion?

    Dear All,
    I have a problem creating a mobile account while joining an Active Directory domain controller (DC).
    ** Case one: While joining the DC, if these options are selected (Create mobile account at login) & (Force local home directory on startup disk), the home directory can not be created at all.
    So, how can case one be solved?
    ** Case two: While joining the DC, if (Creat mobile account at login) is not selected, and (Force local home directory on startup disk) is selected, home directory can be creatded, but not as mobile account.
    So, After creating the home directory, I can go to make it mobile account from Users & Groups/Active Directory user and choose mobile account.
    after creating mobile account, the user loged out and then loged in back again. from here Mobile account botton is disabled and I can not manage it.
    So, How can the bold underline part of case two be solved?
    Note: Active directory used is Windows Server 2008.
    Regards,
    Abdelaal,

    What is a "fax dialog"?
    This dialog, or something closely resembling it, is what you should see:
    Clicking Print sends the fax.
    It is possible Acrobat is interfering with something, in which case you should get rid of it, unless you know of a reason to require it.

  • IPOD WONT COMMUNICATE WITH ITUNES!!!!

    I just got my ipod nano today I thought it would be the best thing ever. But, when I use iTunes, my ipod doesnt show up and it gives me an alert telling me that it wont communticate and to re-install. I re-installed at least 12 times. Is my iPod broken, or is it my computer?????
    HELP!!!!!!!!!!!!!!!!
    thanks alot!
    forgot to say that i have microsoft XP office edition

    Alright, I have had this same problem. There are a few things you can do. First of all...since you have XP, you MUST MUST MUST, make sure that you are the only user loged onto the computer. If you are not the computer does not know what to do with the ipod when it is connected...as soon as you log that other person off it should work like normal. If that dont work, restart or shutdown the computer, and try again. Again making sure you are the only person logged onto the computer...if you have any questions you know what to do!

  • Simple authentication and authorization with a servlet and a filter

    Could somebody point me to code example that do simple authentication/authorization using one servlet and one filter? (without Spring, Struts, JSF or any framework)
    I&rsquo;m having a lot of problems with that, apparently, easy task.
    These are the rules:
    - A simple login page
    - Two roles (admin, registered).
    - If the user loged is an admin, redirect to his entry page (private/admin/index.jsp).
    - If the user loged is of role registered, redirect him to his entry page (private/registered/index.jsp).
    - If it&rsquo;s not a valid user, redirect again to login page.
    - Admin&rsquo;s users cannot go to private/registered/ area.
    - Registered users cannot go to private/admin/ area.
    - Non authenticated user cannot go to private/ area
    Thanks a lot in advance!
    Edited by: JLuis on 25-ago-2010 15:27

    AccessControl.java:
    package com.tlsformacion.security;
    import java.io.IOException;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.tlsformacion.utils.Log;
    public final class AccessControl extends HttpServlet {
         private static final long serialVersionUID = 5741058615983779764L;
         private static final String USERNAME_ATTR = "username";
         private static final String PWD_ATTR = "password";
         private static final String LOGIN_PAGE_ATTR = "login_page";
         private static final String ROL_ATTR = "role";     
         private boolean isAuthentic = false;
         private String role = null;
         private String loginPage = null;
         public AccessControl() {
            super();
         public void init(ServletConfig config) throws ServletException {
              loginPage = config.getInitParameter(LOGIN_PAGE_ATTR);
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              debug("Inside doGet");
              doAccessControl(request, response);
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              debug("Inside doPost");
              doAccessControl(request, response);
         private void doAccessControl (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              debug("Inside doAccessControl");
              doAuthentication(request, response);     
              if (isAuthentic) { //Authentic user
                   doAuthorization(request, response);                         
              } else { //User NOT authentic
                   doRejection(request, response);
         private void doAuthentication(HttpServletRequest request, HttpServletResponse response) {     
              debug("Inside doAuthentication");                         
            String requestedURI = request.getRequestURI();
            if (requestedURI.contains("/AccessControl")) { //Comes from login page           
                 debug("Comes from login page");
                  String username = request.getParameter(USERNAME_ATTR);
                String pwd = request.getParameter(PWD_ATTR);   
                 role = getRole(username, pwd);
                 if (role != null) {
                      isAuthentic = true;
                      request.getSession().setAttribute(ROL_ATTR, role);
            } else { //Doesn't comes from login page
                 debug("Doesn't comes from login page");
                 if (isInSession(request)) {
                      debug("Rol is in session");               
                      isAuthentic = true;
                 } else {
                      debug("Rol is NOT in session");
         private void doAuthorization(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {          
              debug("Inside doAuthorization");
              String requestedURI = request.getRequestURI();
              debug("requestedURI: " + requestedURI);
              if (requestedURI.contains("/AccessControl")) { //Comes from login page                                                                 
                   goHomePage(request, response);
              } else if (requestedURI.contains("/private/" + role)) { //Trying to access his private area
                   goRequestedPage(request, response);
              } else { //Trying to access other roles private area
                   goLoginPage(request, response);
        private void doRejection(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {          
             debug("Inside goRejection");
             role = null;
              goLoginPage(request, response);         
         private void goHomePage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              debug("Inside goHomePage");     
              String homePage = "private/" + role + "/index.jsp";
              goPage(request, response, homePage);
         private void goLoginPage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              debug("Inside goLoginPage");
              goPage(request, response, loginPage);
         private void goRequestedPage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              debug("Inside goRequestedPage");
              String contextPath = request.getContextPath();          
              debug("contextPath: " + contextPath);
              String requestedPage = request.getRequestURI().replace(contextPath + "/", "");
              goPage(request, response, requestedPage);
         private void goPage(HttpServletRequest request, HttpServletResponse response, String page) throws IOException, ServletException {
              debug("Inside goPage ...trying to go to: " + page);
              //Option A
              response.sendRedirect(page);
              //Option B
              //RequestDispatcher requestDispatcher = request.getRequestDispatcher(page);
              //requestDispatcher.forward(request, response);                  
         private boolean isInSession(HttpServletRequest httpRequest) {
             boolean inSession = false;
              role = (String)httpRequest.getSession().getAttribute(ROL_ATTR);
              if (role != null && !role.equals("")) {
                   inSession = true;
             return inSession;
        //PENDIENTE: mock method!
        private String getRole(String username, String pwd) {         
             String role = null;
             if (username.equals("admin") && pwd.equals("admin")) {
                  role = "administrator";
             } else if (username.equals("regis") && pwd.equals("regis")) {
                  role = "registered";
             return role;
        private void debug(String msg) {
             Log.debug(msg);
    }Proyect Folder Structure:
    WebContent
         login.html
         private
              administrator
                   index.jsp
              registered
                   index.jspBasically, the problem is that if you try to log as admin/admin (for example) the servlet AccessControl executes infinitely
    Edited by: JLuis on 26-ago-2010 8:04

Maybe you are looking for

  • Acrobat 8 Crashes when Inserting a page

    This has never happened to me before, but now whenever I try to insert a page in any of my files, I get an error: Adobe Acrobat 8.1 has encountered a problem and needs to close.  We are sorry for the inconvenience. It happens every time. Any one know

  • Solution for the scan function no longer appears in the HP Printer Icon.

    Buy a new Brother printer.

  • SQL Developer tool sometimes does not display data with date type

    run the following query using the sql developer tool - select effective_date from table1 where id = 123; (the effective_date is stored in the database as date.) one record is returned with no date in the filed. However, if I change the query to selec

  • Posting a incoming payment collection management

    Dear All, I am posting an incoming payment for an overdue item using the t.code f-28 and transfering the payment using FDM_coll_send01. The output details is saying that no payments updated for the customer 'x' If i open and see the worklist the over

  • Intro banner slide show gallery

    I'm trying to find a banner slide show or tutor to build in flash a banner similar to the one on this page http://www.greggavedon.com/ . I have searched on google and can only seem to find tutor or programs that are sinlge image banner rotators. Can