Urgent: how to Logoff and redirect to the login screen from WebDynpro appli

Hi,
i want to logoff and redirect to to the login page.
i use WDClientUser.forceLogoffClientUser([_"what should be the code here"_]);
If i pass null as the url, it will terminate and default message will be shown (it will not go to logon screen)
I want to logoff and navigate to customize login page.
I don't know from which server the request is from dev, Qa or some other system.
I can use WDClientUser.forceLogoffClientUser("http://dev"); but it doesn't work with QA.
i will be really appriciate we suggest me regarding this. Its urgent please send for responce ASAP.
Thanks
NSM

Hi,
use the following code to get the url
String hostName = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerName();
          int port = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerPort();
          StringBuffer url = new StringBuffer("http://");
          url.append( hostName );
          url.append(":");
          url.append(port);
WDClientUser.forceLogoffClientUser(url.toString());
Regards
Ayyapparaj

Similar Messages

  • My MacBook Pro will turn on and get to the login screen. After I login though it goes to a white screen.

    My MacBook Pro will turn on and get to the login screen. After I login though it goes to a white screen.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • My MacBook Pro is now asking for a login. When I enter my passcode, it goes to a blue screen and back to the login screen. I saw several older posts, but nothing recently. I am running Snow Leopard.

    My MacBook is now asking for a password. When I login, it loops to a blue screen, and back to the login. Incorrect logins create a shaking of the login screen. I tried restarting with the shift key depressed, with no luck.

    I performed a hard shutdown, and upon start I could access my system without logging on. I'm not sure what caused the issue, but I have not booted up in almost a week.

  • Invalidating the ADF session and redirecting to EBS login screen

    Hi ADF team,
    I am developing an application which is being accessed from eBusiness Suite (EBS), using ADFX function. It has a global Logout link. When the link is clicked, two things should happen.
    1. the ADF session that is running on WLS server should be killed.
    2. I should be redirected to eBusiness Suite login page.
    This is what I am doing and I am getting error(s).
    1. Created a Container jspx page and embedded a task flow in it.
    2. Embedded a jsff into task flow.
    3. In JSFF created a global link called Logout.
    4. Set the action property of Logout link such that it calls a function in the AMImpl. (I confirmed, the function is being called)
    5. In the function invalidate the ADF session using following code.
    HttpServletResponse response = ((HttpServletResponse)ADFContext.getCurrent().getEnvironment().getResponse());
    HttpServletRequest request = ((HttpServletRequest)ADFContext.getCurrent().getEnvironment().getRequest());
    HttpSession sessionADF = request.getSession();
    sessionADF.invalidate();
    return "EBSLogin";
    6. Now, EBSLogin control flow leads to a URL View component that has the URL property set as "www.oracle.com".
    --Using this approach I get the error: adfc-14000: view port id ****** is invalid
    -----Thus need help with this error. Is there a better way to accomplish this ?? What am i doing wrong?
    Also, I have a question on how to set the URL property of 'URL View' component. I set it to #{pageFlowScope.MainPageBean.testLogoutURL}. testLogoutURL is a function that returns string. But I do get an error at run time, mentioning that the property cannot be NULL. Thus seems like the way I am doing it is not totally correct. Please advice.
    Thanks & Regards,
    Anoop

    on top of my head
            FacesContext fc = FacesContext.getCurrentInstance();
            ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
            HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
            HttpSession session = (HttpSession)ectx.getSession(false);
            String redirectURL = (String)session.getAttribute("ebizRedirectUrl");
            if(redirectURL!=null){
              int oa_html = redirectURL.indexOf("OA_HTML");
              finalRedirectURL = redirectURL.substring(0, oa_html);
              finalRedirectURL = finalRedirectURL + "oa_servlets/AppsLogin";
            if (session != null)
            session.invalidate();
            try {
                response.sendRedirect(finalRedirectURL);
                fc.responseComplete();
            } catch (IOException e) {
                e.printStackTrace();
            }

  • How to Assign User name and password to the login screen on button click without user type...

    Hi,
    My requirement is as follows,
    I have three inputs which is User name, Password and URL. URL may be like anything like for example gmail,yahoo,hotmail like that.
    No need to authenticate the URL. Just i want to place the credentials in User ID and Password controls.
    On button click the URL should open in browser and the credentials should place in the controls in log in page.
    How to achieve it. Ultimate thought is the user should know the "Password",only admin know the password.
    Thanks & Regards
    Poomani Sankaran

    Hello,
    If URL's are internal (not third party) then you can do this by modifying both applications. If you are trying to do this with third party then you have to contact product owner. I don't think there is any code or solution for third party application where
    you can set values of controls.
    For internal URL's you can create custom web service and call this web service in both the applications. One to get value from first app and then second to set value in another app.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How do I hide or remove the "welcome" screen from Creative Cloud apps?

    I hate "welcome" screens, which just get in my way and force me to get rid of them. These are only features when I can permanently dismiss them, yet with the latest update, I appear to be stuck with them. Is there anyway I can make them go away? Ideally, I'd like to do this globally, because I never, never, never want to see them again.

    I'd like to know this too. Does this mean that it can't be disabled? That thing is so annoying. Please Help.

  • I have OSX 10.5.7 on my Intel Mac. When I try to login using the correct password the screen goes white and just returns back to the login screen. It does not jiggle like when you enter the wrong password.

    I have had a number of issues with my Intel Mac recently and had to reboot using disk utilities, safe mode, OSX recovery, but always come back to the login screen but when I type my password the screen goes white and returns to the login screen. My password is correct and the login does not jiggle as it would if the password was wrong. Please advise,

    Back up all data if you haven’t already done so. There are ways to back up, even if you can’t log in. Before proceeding,you must be sure you can restore everything to the state it’s in now. If you’re not sure you can do that, STOP.
    The procedure below may spare you the need for a clean reinstallation of OS X. If you don't feel comfortable carrying it out, don't. try.
    Briefly, you need to delete the following file:
    /var/audit/current
    If you already know how to do that, you can skip the rest of this message. Do it, and try again to log in.
    Boot in single-user mode by holding down the key combination command-S at the startup chime. If you’re using an external USB keyboard, it must be plugged directly into a built-in port on the Mac, not into a hub. Release the keys when you see a black screen with scrolling white text. In this mode, there’s no graphical interface; just a command line. Initially, you can’t make any changes to files.
    When the text stops scrolling, and you see a line ending in a pound sign (“#”), type the following command:
    mount -uw /
    You must type the command exactly as given, with no mistakes. If you don’t feel able to do that, STOP. At this stage, no harm will be done if you make a mistake, but later, it will be. Press the return key.
    Next, type the following command:
    rm -i /var/audit/current
    Press return. You should get the following output:
    remove /var/audit/current?
    If that's not what you get, STOP. Type the single letter N, press return, and try again. Otherwise, type the single letter Y and pressreturn.
    Finally, enter the command:
    exit
    Press return. The text will start scrolling again, and then the system will reboot. Try again to log in.
    Credit for this solution to ASC user AnthonyTW.

  • Portal Logoff and redirect to my own (created) logon page

    Hi experts,
    one Question about "Portal logoff and redirect to another URL", and I know there already are solutions how to fix that, but I was not successfull with my doings.
    I have a customized logon page. When I call "http://myportal:50000/irj/portal/anonymous", I can see my own logon page. That works fine.
    Now to my problem:
    1) I'm using SAP NetWeaver Portal v7.01 (VMWare) with Windows 7 (x64 Bit)
    2) In Config Tool "ume.logoff.redirect.silent" is setted at true and "ume.logoff.redirect.url" (both under "Global settings") at "http://myportal:50000/irj/portal/anonymous". Than WebAS has been restarted.
    3) In source code of the Portal page (Masthead), I could see that the setted values can be readed from config tool
    4) So far I could understand, when the parameters are setted and "silent" is true, than a new iframe will be created which is append to the document (JavaScript: logoffThirdParty())
    5) After this, the logoff form will submitted, that means xxxx.LogOutComponent is running. Think this components reads some hidden attributes as "logon_submit", and one of this should be the (new created) externalIFrame
    Instead of my anonymous page, I see the default SAP logon page. I don't have made any changes on com.sap.portal.navigation.masthead iView (should be the right name I think).
    Thanks for assitance and regards,
    Cengiz
    Edited by: Cengiz Türkoglu on Feb 5, 2010 8:39 PM
    Edited by: Cengiz Türkoglu on Feb 5, 2010 8:39 PM

    Try to set the value ume.logoff.redirect.silent to FALSE and then restart and test. In my situation it worked.
    Regards,
    A

  • My MacBook Air 13' (2013) will occasionally start the fan at full blast, not connect to any wifi or detect any wifi, and will remove the battery icon from my menu bad as well as tell me there is no battery connected. How do I fix this?

    My MacBook Air 13' (2013) will occasionally start the fan at full blast, not connect to any wifi or detect any wifi, and will remove the battery icon from my menu bad as well as tell me there is no battery connected. How do I fix this? I have restarted my computer multiple times, **** it down, and ran a diagnostic test to tell me nothing is wrong and my computer is not running any applications. There is no reason for the fan to be on full blast! when I try to set the option to show my battery icon in the menu bar, it will automatically uncheck. How do I fix all of this?

    Have you tried SMC and PRAM resets?
    http://support.apple.com/kb/HT3964
    http://support.apple.com/kb/ht1379
    Ciao.

  • HT1414 i have the 1st iPad. Can it be updated to iOS 6.0.1?  If not how to fix-when on the internet sometimes it will just stop and go to the apps screen.

    i have the 1st iPad. Can it be updated to iOS 6.0.1?  If not how to fix-when on the internet sometimes it will just stop and go to the apps screen.

    svargaswp wrote:
    i have the 1st iPad. Can it be updated to iOS 6.0.1?  ...
    No.
    iOS 5.1.1 is the lastest for the iPad 1.
    svargaswp wrote:
    ... how to fix-when on the internet sometimes it will just stop and go to the apps screen.
    Try This...
    Close All Open Apps...  Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430
    Note:
    Also consider Deleting any Apps you have Purchased / Downloaded but you now never use..
    If necessary...
    Connect to iTunes on the computer you usually Sync with and “ Restore “...
    http://support.apple.com/kb/HT1414

  • I bought the iPad and got it home and when I turned it on, all I see is the iTunes logo w/ a usb connector and arrow. How do I clear that and go to the home screen??? HELP!

    i bought the iPad and got it home and when I turned it on, all I see is the iTunes logo w/ a usb connector and arrow. How do I clear that and go to the home screen??? HELP!

    You need to Set Up the iPad... Connect it to iTunes...
    See here for Getting Started...
    http://www.apple.com/support/ipad/
    and here...
    iPad User Guide iOS 5
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf

  • My iphone 5 does not turn on anymore.  when i plug the charger in the apple icon turns on and off but the home screen never shows up.what do i do to fix it? how can i get my info back?

    My iphone 5 does not turn on anymore.  when i plug the charger in the apple icon turns on and off but the home screen never shows up.what do i do to fix it? how can i get my info back?

    from the information you provided i can't tell if it is a hardware problem or a software problem. I do have an idea though, try to press your home button and lock button at the same time.

  • In my old OS I could press F11 and clear all the open windows from view to see only the desktop. How can I do that now in Mavricks?

    In my old OS I could press F11 and clear all the open windows from view to see only the desktop. How can I do that now in Mavricks?

    system preference > Keyborad >  click the box thast says  use all f1,f2,f2 keys as standard functiong Key and then the f11 key should casue all window fo fly to the side and you can see your desktop

  • How do i drag media to the menu screens in premiere elements 13? I can't see my audio files and the menu screens at the same time. In prior versions it was easy

    How do i drag media to the menu screens in premiere elements 13? I can't see my audio files and the menu screens at the same time. In prior versions it was easy?
    It is very cumbersome to "re browse" for audio files/pics/movie clips to add to menu screens. Certainly there is a way to view the media and menu screen at the same time so I can drag and drop?

    Jayhawk
    I think I know exactly what you are seeking and believe it cannot be done in Premiere Elements 11, 12, and 13 as it can be done in versions earlier than 11 where the Disc Layout and Project Media are viewed side by side.
    Premiere Elements 13 uses a Movie Menu customization workspace which is not allowing viewing of Project Assets in the Expert workspace at the same time.
    ATR

  • I did an update and only only the music purchased from itunes store is there all the cds I burned to it are gone. Tried syncing ipod but it says it will wipe all content. How do I get all my music back. gone from over 6000 songs to 250?

    I did an update and only only the music purchased from itunes store is there all the cds I burned to it are gone. Tried syncing ipod but it says it will wipe all content. How do I get all my music back. gone from over 6000 songs to 250?

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

Maybe you are looking for