Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Application alias (short URL) for Web Dynpro

Hello Experts,

I know this is an old question that came up throughout the years but I'll try again (-:

Stanbdalone Web Dynpro URL looks like this:

http://<server>:<port>/webdynpro/dispatcher/<namespace>/<prj_name>/<app_name>

I want to use an application alias for this URL, something like:

http://<server>:<port>/myContext/app1

The solutions I know:

1) Use simple servlet redirect: in this case the user enters short URL but after the redirect the original Web Dynpro URL is shown in the location bar.

2) Use the Web Dynpro URL in an iframe

3) I thought of getting the Web Dynpro servlet and forward to it:

ServletContext servletContext = getServletConfig().getServletContext().getContext("/webdynpro/dispatcher");

try {

    servletContext.getRequestDispatcher("/<namespace>/<prj_name>/<app_name>").forward( request, response);

} catch (Exception e) {

    // TODO: Handle exception...

}

This works for first screen but as soon as an event is triggered, an error occurs ('404 Not Found').

So, how can I use application alias (short URL) for my standalone Web Dynpro?

J2EE version is 7.31 SP7.

Regards,

Omri

Former Member
replied

Hello Omri,

What you would like to do is unfortunately not supported by the J2EE Engine and nor by the WD Java framework.

Further the Web Dynpro Java framework is in maintenance mode which means that we do only bug fixing and no new features are possible (especially not ones related to the core framework).

If you use an alias (e.g. /nwa or /sld, etc.) then you will be able to use a short URL, but only at first invocation. After that the application gets re-directed to the actual resource (just as you also experienced).

Best Regards,

Szabolcs Renyo

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question