Skip to Content
author's profile photo
Former Member

Linking two webdynpro application

How can I call a webdynpro from another? For instance, I tried using a URL as described in a previous post' solution by Karin Schatka, but it doesn't work.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Mar 31, 2004 at 12:12 PM

    Hi ED,

    a little bit more low level call of another WD url is done by the following code snippet:

    //@@begin onActionRedirect(ServerEvent)

    // Application is in the deployable object of the caller component in this case.

    IWDDeployableObject componentDPO =


    String appName = "RedirApp";

    WDDeployableObjectPart[] applicationParts =


    if (applicationParts == null || applicationParts.length == 0) {

    throw new WDRuntimeException(

    "Redirect error: No application parts available in: " + componentDPO.getName());


    WDDeployableObjectPart appPart = null;

    for (int idx = 0; idx < applicationParts.length; idx++) {

    appPart = applicationParts[idx];

    if (appPart.getShortName().equals(appName)) {



    appPart = null;


    if (appPart == null) {

    throw new WDRuntimeException(

    "Redirect error: The application: "

    + appName

    + " is not a part of: "

    + componentDPO.getName());


    Map urlParameters = new HashMap();

    urlParameters.put(ClientConstants.APPLICATION_PREFIX + "Param1", "Parameter sent by caller.");

    try {

    String url = WDURLGenerator.getApplicationURL(appPart, urlParameters);

    if (!Task



    .sendRedirect(url, ClientConstants.SESSION_EXPIRED_REDIRECT_TYPE)) {

    throw new WDRuntimeException(

    "Redirect to application: "

    + appName

    + " in dpo: "

    + componentDPO.getName()

    + " failed.");


    } catch (WDURLException e) {

    throw new WDRuntimeException(e);

    } catch (IOException e) {

    throw new WDRuntimeException(e);



    Then, somewhere in the called app, you can receive the parameter of the sample by:

    String param1 =


    ClientConstants.APPLICATION_PREFIX + "Param1");

    But beware! I'm not really sure, if this is really a "legal" way of calling another application.

    Hope that helps.



    Add comment
    10|10000 characters needed characters exceeded