Problem in Using an URL in Exit Plug (NW 2004s SP12)

Hi,
I have a Webdynpro application to specify the terms and conditions for the users when they login to the portal for the first time.
Upon Accepting the terms by the user, i used to loggoff the user and will redirect to the portal logon page again to relogin. (This was a requirment )
I was using an exit plug with the URL pointing to loggoff.jsp which invalidates the session and redirect to the portal login page again. This was working fine in NW 2004.
The code used to call the exit plug in the Window Interface view is,
<b>wdThis.wdGetTermsandConditionsWindowInterfaceViewController().wdFirePlugToPortal("/globalportal/web/logoff.jsp");</b>
When we upgarded into 2004s SP12 i am getting the folllowing error when firing the exit plug with the URL.
<b>"The Exit Plug can not use an URL when used in Portal, use Portal Navigation instead"</b>
We tried portal navigation as well, but seems that will work with PCD Objects only, where we need to redirect to the URL(logoff.jsp).
I tried the HttpServletResponse.sendRedirect() as well, but the control remains in the TermsandConditions view only.
<b>Code Used:
WebCallback  webcallback = new WebCallback();
HttpServletResponse response= webcallback.getResponse();
response.sendRedirect(URL);</b>
Please let me know if somebody faced this issue and the work around for this.
My requirement is that upon clicking on the Accept button, i need to logoff the user by calling logoff.jsp will be destroy
the session and redirect to portal login page.
Please let me know the work around to call the URL in the view.
Appreciate your reply.
Thanks and Regards,
Sekar

Hi
Try
WDClientUser.forceLogoffClientUser(null);
url - the URL of the page that is shown to the user after logoff was done. If the parameter is null, the redirect is done to the "LogoffURL" URL that can be specified in the application properties. If this URL is also not defined, a redirect to a Web Dynpro internal logoff page is done.
So you may either accept default logoff-page (just text "Web Dynpro application terminated. Good bye!" or provide your own page via application properties).
Next, it is impossible to just log-off to auth screen. It is necessary to set as log-off URL some application that requires authentication also.
This way WD will first log-off user, then shows auth-screen and then login him again to the target application.
So try the following:
In NW IDE open your application properties, and add standard property "log-off URL", for example "/useradmin/userAdminServlet?userProfileView";
Regards
Ayyapparaj

Similar Messages

  • Image.source problem when using an URL with params

    Hello everbody,
    I want to dynamically load images into a dataGrid using the
    following item renderer:
    <mx:DataGridColumn headerText="Image" dataField=""
    width="100">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Image width="100" height="75" source="{'
    http://myserver:8080/servlets/getImage?id='+data.@id+'&width=100&height=75&format=image/pn g'}"/>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    This source won't compile, the error message is 'The
    reference to entity "width" must end with the ';' delimter.
    Ok what's going on here. Seems AS3 not liking my URL params,
    it's not that the width url parameter is a general widget property,
    when i rename the params to "xywhatever" i have the same result.
    When i remove the "&...." from the URL the code compiles.
    (Unfortunately my servlet isn't working without the params..).
    Anyone has an idea what i can do here?
    Thanks in advance!

    I am having difficulties connecting to the MS Active Directory from weblogic 10.3.2. Can you please post your connection info? I am getting data 525 v1772 error. I can't see the users.
    Note: My friend Koksal Aci changed a user parameter, we are not sure if it is the main reason we couldn't connect, but after we have written the first domain's name in capital + "\" + user name, we were successful in connection to Microsoft AD, and getting the user and group names.
    Edited by: cenkozan on Dec 3, 2010 11:12 AM

  • Problem with POPUP and exit plug

    Hi together,
    in my case under certain conditions i create a popup window from a view with the method "if_wd_window_manager->create_popup_to_confirm( )"
    The popup displays an error or success message to the user and a "OK" button is available. I stored the popup window in the attributes of the underlying view. So an action "OK_BUTTON_PRESSED" of the view is assigned to the OK-button of the popup using method "if_wd_window->subscribe_to_button_event( )".
    In the action handler two commands are executed:
    1) closing the popup with "if_wd_window->close( ) method of the popup reference stored in the view attributes".
    and
    2) firing a navigation plug from the view to the underlying window which calls its own window exit-plug.
    Now my problem is that the popup window does not close when i leave the view with the navigation plugs. Without the plugs everything is working fine. It seems that the underlying view/window must still be available to close the popup.
    In my case the exit plug is called. I can see it because a new URL is called and i can see the new page but the modal popup is still there and not closed.
    Has anyone an idea how to solve that problem?
    Edited by: Dirk Jäckel on May 23, 2008 3:34 PM

    hi dirk......
             what you can do is first execute the close method and set an attribute to 'X' once this close is over. then in your wddomodify method of the view check for that attribute and fire that plug. so the firing should take place in the modify view method.
    ---regards,
       alex b justin

  • WDRuntimeException: Exit-Plug must no be triggered with an URL when running

    Dear SAP,
    In our SRM-JAVA system, when I am leaving a web page, I get this error :
    The initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal.
    Use portal navigation instead to navigate to another application!
    at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:516)
    at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:462)
    at com.sap.mdm.srmcat.uisearch.master.wdp.InternalMasterWindowInterfaceView.wdFirePlugToApplicationPlugOUT
    (InternalMasterWindowInterfaceView.java:205)
    at com.sap.mdm.srmcat.uisearch.master.Master.callOCIComponent(Master.java:1119)
    at com.sap.mdm.srmcat.uisearch.master.wdp.InternalMaster.callOCIComponent(InternalMaster.java:940)
    ... 32 more
    More detail :
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:516)
    at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:462)
    at com.sap.mdm.srmcat.uisearch.master.wdp.InternalMasterWindowInterfaceView.wdFirePlugToApplicationPlugOUT(at com.sap.mdm.srmcat.uisearch.master.Master.callOCIComponent(Master.java:1119)
    at com.sap.mdm.srmcat.uisearch.master.wdp.InternalMaster.callOCIComponent(InternalMaster.java:940)
    at com.sap.mdm.srmcat.uisearch.master.MasterView.onPlugfromResultSetViewIn(MasterView.java
    Thanks in advance for your input.
    Best regards
    SAP NetweaverAdmin
    Edited by: SAPNetWeavAdmin on Jan 14, 2011 7:11 PM

    Hi,
    could you please take a look at the following SAP note and see if this is relevant for you?
    1450826 - Error when SLD administration called in portal environment
    About your problem, is this happening every time you leave a web page?
    Regards,
    Jonas Cella

  • Exit plug url parameters without XSS encoding

    Hi,
    I fire an exit plug with POST_PARAMETERS = 'X' and passing a different postParameters='sap-client=101&sap-user=5E224C57E11&sap-password=Asdf1234'. However the special characters are encoded and not passed correctly to the webdynpro app.
    I got this behavior from CREATE_EXTERNAL_WINDOW with USE_POST = abap_true settings. I am trying to hide the sap-user and sap-password from the URL when redirecting to a new WebDynpro app in the same way, but remain in the current window.
    My question is how can I prevent the automatic XSS encoding? I have turned off the login XSRF flag in SICF, but it has no effect on this.
    Another option if somebody can tell me how can I do the same as CREATE_EXTERNAL_WINDOW in the same window, it should also be fine.
    Your help is appreciated.
    Charlie

    >
    Frederic Wood wrote:
    > Thank you Frank!  This accomplished exactly what I asked.  Points awarded!
    >
    > However...
    >
    > What is bugging me now is the fact that the BSP app is processed on the lo_client->send( ) and my POSTed parameters are visible, but the BSP is not displayed.  Then, when I actually Fire my WD outbound plug to display the BSP, the BSP is processed and displayed, but the POSTed parameters have been lost... 
    >
    > Your thoughts?
    That is because there are two very different calls to the BSP application occuring. The solution that you said worked is using the HTTP Client (browser if you will) of the application server.  Therefore it is the ABAP system itself that is calling the BSP application.  That is why nothing is displayed on the client side - because the server itself is making the request and receiving the response.  This approach is really only usable if you need to call a data service (REST based or something like that), not if you actually need to dispaly the response to the user.
    When you fire the navigation plug, it is the browser on the client machine that is making the request to the BSP application. This is completely separate from the request made from the application server in the previous step. 
    If you can't use GET and URL parameters, then you should just consider using Server Cookies.  I don't think that hte HTTP Client class approach is going to get you what you want.

  • Examples of using exit plug

    Hi there,
    I am launching a WD app via the portal UWL.  I'm using the action handler "SAPWebDynproABAPlauncher" and launching the app in a new window via the "launchinNewWindow" parameter.
    What I'm trying to achieve is being able exit this WD app and launch a new WD app. 
    I've been advised to use an exit plug in the calling WD app but I'm trying to find a working example of how to code this as I obviously need to be able to construct the URL for the new WD app and somehow pass this URL as part of the exit plug?
    I'm aware the exit plug needs to be defined as an interface outbound plug of the WD components' window but I'm stuck when it comes to how the firing of the exit plug and construction of the URL should be coded.
    Any help would be greatly appreciated.
    Michael

    Hi Michael,
    I'm not sure I understand your last question. Do you want to immediately close and exit app1 whilst launching app2.
    Are you using app1 as some sort of redirect application?
    As you mention that you are using the UWL - I'm guessing you're running within a portal?
    In which case you could also use the portal navigation API which I believe can be fired from anywhere.
    The good thing about this is that you can easily make it relative - easier to migrate through various development environments. But I guess that also depends on whether the app2 is indeed anothe WD app, whether you want to access it through the portal, use different authentication etc.
    eg:
    data lo_api_component  type ref to if_wd_component.
    data lo_portal_manager type ref to if_wd_portal_integration.
    lo_api_component = wd_comp_controller->wd_get_api( ).
    lo_portal_manager = lo_api_component->get_portal_manager( ).
    call method lo_portal_manager->navigate_absolute
      exporting
        navigation_target   = 'http://www.google.com'
        navigation_mode     = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_EXTERNAL
    *    window_features     =
    *    window_name         =
    *    history_mode        = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES
    *    target_title        =
    *    context_url         =
    *    post_parameters     = ABAP_FALSE
    *    use_sap_launcher    = ABAP_TRUE
    *    business_parameters =
    *    launcher_parameters =
    hope it helps,
    Cheers,
    Chris

  • Replacement of Exit Plug to navigate to some URL

    Hi All
    After upgrade from Netweaver2004 to 2004s,
    Webdynpro application doesnt support Exit Plug to navigate to some URL, when webdynpro application is run in Portal.
    It gives following errors
    <b>com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application</b>
    I tried using <b>WDPortalNavigation.navigateAbsolute</b>, but it is not working as expected.
    Please guide me what can be done
    Thanks and Regard
    Sonal Mangla

    Hi Sumit
              String deployableObjectName =
                   wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
                   WDDeployableObjectPart deployableObjectPart =
                        WDDeployableObject.getDeployableObjectPart(
                             deployableObjectName,
                             "IsrlAddrApp",
                             WDDeployableObjectPartType.APPLICATION);
                   // Get the URL of the application
                   String urlToTargetApp =
                        WDURLGenerator.getApplicationURL(
                             deployableObjectPart,
                             new HashMap());
    and now passing <b>urlToTargetApp</b>.
    I am not sure WDPortalNavigation.navigateAbsolute works for such urls also or does it work for only pcdid paths.

  • I have just downloaded OSX Yosemite and attempted to use photoshop CS5 but was prompted to install JavaForOSX2014-001dmg and now photoshop won't open saying ' an unexpected and unrecoverable problem has occurred.photoshop will now exit".  ??

    I have just downloaded OSX Yosemite and attempted to use photoshop CS5 but was prompted to install JavaForOSX2014-001dmg and now photoshop won't open saying ' an unexpected and unrecoverable problem has occurred.photoshop will now exit".  ??
    Can I revert to the older operating system?
    I am not familiar with tech speak, so plain english please. Thank you in advance.

    Do a backup, preferably 2.
    Revert to a Previous OS X
    Revert Yosemite to Mavericks

  • I use Firefox 16.0.2 on Leopard. Problem: after using succesfully an url on a site, original site(with url) has disappeared.

    I use Firefox 16.0.2 on Apple Leopard. Problem: when I use an url on a site, I am correctly transfered to the site of the url. But I can't go back again to the original site, on which the url was mentioned. the site has disappeared. Thanks in advance for your help!

    You can also open the links in a new tab with a middle click on the link.<br />
    That way you do not need to use the Back button, but can simply close a tab or otherwise return to the previous tab.<br />
    Also make sure that you have the cache enabled and that the cache is working.<br />
    Check the current cache usage on the about:cache page.
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Problem while creating partner link using https URL

    Hi,
    To create the partnerlink using https URL, I had done the following:
    -Imported the self signed certificate into the OraBPELPM_\jdk\jre\lib\security\cacert
    -Added following entries in OraBPELPM_1\integration\jdev\jdev\bin\jdev.conf
    AddVMOption -Djavax.net.ssl.keyStore=E:\OraBPELPM_1\jdk\jre\lib\security\cacert
    AddVMOption -Djavax.net.ssl.keyStorePassword=esbtest123
    I am not able to create partner link using URL https://localhost/orabpel/default/ErrorHandlerBPEL/1.0/ErrorHandlerBPEL?wsdl .
    Able to create partnerlink using same URL if I replace https with http.
    Did I miss any other configuration that needs to done to create partnerlink using https in JDeveloper BPEL Designer.
    Thanks,
    -Vidya

    Hi,
    I  too have the same issue. Appriciate if you share some knowledge on this issue.
    Thanks
    Aravinda

  • WDRuntimeException: Exit-Plug must no be triggered

    Dear gurus
    i  am getting this error while in JCo
    The initial exception that caused the request to fail, was:
       com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!
        at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:516)
        at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:462)
        at com.sap.sld.wd.main.wdp.InternalMainInterfaceView.wdFirePlugToOldUI(InternalMainInterfaceView.java:154)
        at com.sap.sld.wd.main.Head.onActionAdministration(Head.java:277)
        at com.sap.sld.wd.main.wdp.InternalHead.wdInvokeEventHandler(InternalHead.java:227)
        ... 29 more
    Any help
    Thanks and Regards

    Hi Balaji
    Were you able to solve the problem? I'm aslo getting the same problem.
    Regards
    Kaleem

  • Closing window of web dynpro application with exit-plug don't run in the EP

    Hi everybody,
    I want to close a window that contains a Web Dynpro with a close button, because it's used and create as a popup from an other iView (that's not created with web dynpros) in the EP. I read the different threads how to close a window in web dynpro, like JavaScript in WD
    I create a HTML file with the javascript code to close the window and it works fine, when I start the application separately.
    If I used it in the portal and click the close button I get the following error message:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!
    I tried also: ...wdFirePlugExit("javascript:self.parent.close();") or some other javascript code, but got the same error message.
    Then I tried:
    WDPortalNavigation.navigateAbsolute(url,WDPortalNavigationMode.SHOW_INPLACE,(String) null, (String) null,(String) null);
    instead of fireing the outbound plug in the action of the close button
    (...InterfaceViewController().wdFirePlugExit(url);)
    but than a new window with the EP open and the old is still there!
    We use the NWDS2004s an the EP 7.00.
    It must be possible to close a (this) window!
    Thanks for any hint
    christian

    Hi,
       This is what you can do:
    1. You have already created the HTML file with the necessary javascript in the foloowing folder structure :
    src->Mimes->Components-><your component name>-><fileName.html>.
    2. Create a new iView of type URL in your portal.
    3. Get the absolute URL of this HTML file inside your project. This will be in the following format:
    http://<server>:<port>/webdynpro/resources/sap.com/<development ComponentName>/Components/<namespace>/<fileName>.html
    You can find it thus:
    try {
    String u = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"filename.html");
    wdComponentAPI.getMessageManager().reportSuccess(u);
    } catch (WDURLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    4. Now enter this URL string as the URL for the iview.
    5. Do a normal portal navigation to this iview on-click of the button.
    Regards,
    Satyajit.

  • Exit Plug not working in Portal

    Hi experts,
    I have a web dynpro application (WDP A) which fire an exit plug to another web dynpro application (WDP B). It works fine in normal web dynpro runtime. The architecture of the application is shown [here|http://img232.imageshack.us/img232/7172/exitplug.png].
    Now i have created an iView in the EP for WDP A. When the button which fires the exit plug is clicked, i get this error.
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!
    Seems exit plug is not working in portal run time. Any one has an idea on how to solve this?? Use portal navigation?? What is that?? any guideline and documentation on that??
    Thanks in advance.
    Best Regards,
    kityein
    Edited by: kityein lai on Aug 5, 2009 10:04 AM

    Hi,
    Now that your WD apps are running in a Portal they should be more "Portal aware".
    What I mean is that now they are part of a larger framework and you cannot just call the other WD app.
    To do this properly (as the error message says) you should use the portal navigation.
    Portal navigation consists of many variants: Normal, Dynamic, Quicklinks etc etc.
    I personally advice to use Quicklinks if you want to navigate between 2 applciations running in the portal but are not native-portal apps. Altough this might not fit your requrements in this scenario, I cannot say....
    In addtions here are some help resources:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/38/5dc53e5ae84d3be10000000a11405a/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/97/b0ef8b24a64ae884f0ab246e54cae5/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/00c110606a5277e10000000a1553f7/frameset.htm
    Hope this helps you a bit...
    Benjamin Houttuin

  • Firing Exit plug from the embedded component

    Hello All,
    I am working on a scenario where I am developing a Webdynpro component which is child to the MainComponent.
    MainComponent view has links to access my child component as I have exposed my child component as Public part.
    Once my application is access by MainComponent, I can only go back to MainComponent.
    Now I need to fire an exit plug with URL (say sdn.sap.com) from my child component which will open new URL in same browser.
    When I defined exit plug and passed on Url parameter to it, my component throughs exception saying "Cannot fire exit plug from embedded component".
    Is there anyway I can achieve this?
    Please guide me.
    Ashutosh

    Ashutosh,
    <i>I can not use WDClientUser.forceLogoffClientUser(url) as I need user to be logged in.</i>
    Actually, no. It is optional -- you may be either logged-in or not, in later case WD runs under some internal Guest account. So forceLogoffClientUser works in either case.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Error while firing a WD Exit Plug in Portal :(

    Hello All,
    Am new in WD and created the Quiz Demo Application referring to help.sap.com.
    I have added a URL to the Exit plug as:
    wdThis.wdGetQuizInterfaceViewController().wdFirePlugGotoUrl("http://toyouamit.googlepages.com/home")
    The application is working fine when run while deploying (from NWDS). But when run from the WD iView, the exit plug gives the following error:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead.
    In attempt to resolve this we have created an URLiView but in vain!!
    Please guide
    Awaiting Reply.
    Thanks & Warm Regards,
    Ritu

    Hi,
    the error tells it:
    "Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead."
    See here: http://help.sap.com/saphelp_nw2004s/helpdata/en/56/b4544251dcc153e10000000a1550b0/frameset.htm
    There is also another thread where this was discussed, you can find some hints to implement portal navigation:
    Closing window of web dynpro application with exit-plug don't run in the EP
    Kind Regards
    Stefanie

Maybe you are looking for

  • ASA 5505: Site-to-Site VPN, NAT (Overlap Subnets)

    Greetings all.  I've searched through the forums and have found some similar situations to mine but nothing specific.  I'm hoping this is an easy fix...  :/ I volunteer for a non-profit medical facility that has an ASA 5505 (v8.4).  They needed a sit

  • Retina Display MacBook Pro image persistence problem.

    Hello, I have recently ( about 3 months ago) bought a Retina MacBook Pro and installed Windows via Bootcamp on it. I unfortunately am used to Windows. Well recently I tried to migrate to OS X and use it more often. Whilst doing so something caught my

  • ITS BEEN OVER 55 HOURS AND I STILL HAVENT RECEIVED A CODE

    i called to check the status and they said it still pending... i have 4 macbook pros 2 ipads 3 iphone 4s 6 ipod touches and this is the first time their customer service gave me an attutide for calling to check the status im getting really annoyed

  • Sql developer debugger issue

    I am using oracle sqldeveloper 1.0.0.15.57. Previously we were able to set up a breakpoint and step through a stored procedure inside a package. We made sure all the previliges are on and the debugging did really work. But after some time (no changes

  • Using T510 for the 1st time and finger print reader

    I am preparing for the delivery of my Lenovo T510 and when you use it the first time, what are the procedures, set by step, and at what point and how do you set up the finger point reader please.