Skip to Content
avatar image
Former Member

Servlet from Webdynpro

Hi,

Anyone tried launching a servlet from a webdynpro application.

Were you able to manage the session in both the applications?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 20, 2007 at 01:58 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 03:40 PM

    We are using similar kind of application where we are lauching a servlet from WebDynpro application. But our application was not required to maintain common session.

    But I guess its possible to do so, you can try this:

    String servURL = WDWebContextAdapter.getWebContextAdapter().encodeRedirectURL("/applicationcontext/servletalias?requestparameters");

    IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(servURL,"Title here",false);

    window.setWindowSize(1024,640);

    window.setWindowPosition(WDWindowPos.CENTER);

    window.open();

    You can find documentation for

    WDWebContextAdapter.getWebContextAdapter().encodeRedirectURLhttps://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/services/sal/adapter/api/IWDWebContextAdapter.html#encodeRedirectURL(java.lang.String)">WDWebContextAdapter.getWebContextAdapter().encodeRedirectURL>

    Regards

    Abhilash

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 20, 2007 at 03:58 PM

    Asif, /people/maksim.rashchynski/blog/2006/08/07/intercomponent-parameters-exchange describes pretty much the same what you need - exchange of components between WD and servlet.

    Add comment
    10|10000 characters needed characters exceeded