cancel
Showing results for 
Search instead for 
Did you mean: 

Servlet from Webdynpro

Former Member
0 Kudos

Hi,

Anyone tried launching a servlet from a webdynpro application.

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

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member182372
Active Contributor
0 Kudos

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.

former_member182294
Active Contributor
0 Kudos

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

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

Regards

Abhilash

Former Member
0 Kudos