Quantcast
Channel: SCN : All Content - Web Dynpro Java
Viewing all articles
Browse latest Browse all 1288

Application alias (short URL) for Web Dynpro

$
0
0

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


Viewing all articles
Browse latest Browse all 1288

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>