cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide URL not using Iframes?

Former Member
0 Kudos

Hello @ all,

I need a the following functionality:

I need to redirect from a Web Dynpro App to a BW-Webtemplate and I want to use LinkToUrl´s or LinkToAction or Buttons.But when I navigate to the BW-Web template, I want, that the URL is not shown in the addressbar of any Browser. The Url of the Web Dynpro App should be shown, even when the User navigates to another URL!I cannot use iframes because they are not supported by mobile devices!

I hope my question is described in more detail now.

Thank you very much!

Mehmet

Message was edited by: Mehmet Ucar

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Mehmet,

You can try following approach:

1) Create servlet wich process POST HTTP requests, reads URL passed as one of parameters and calls <i>snedRedirect</i> from HTTPServletResponse for example (see http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletResponse.html). Check whether mobile browser supports correct behavior for HTTP code 302 (SC_MOVED_TEMPORARILY)

2) In WD application call this servlet. The only chalenge here - how to pass URL as POST parameter. Use plain methods form URLConnectiion and add it to headers directly or use some helper classes (for example http://jakarta.apache.org/commons/httpclient/)

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hello Maksim,

so is it right to say, that web dynpro has no mechanism to open a URL without changing the URL in the addressbar like when using iframes?

For example, i want to call a URL as following:

http://host:port/sap/bw/BEx?sap-language=DE&bsplanguage=DE&CMD=LDOC&TEMPLATE_ID=XYZ

If I would use an iframe, the URL would not change in the addressbar.

Thanx alot in advance!

Best regards Mehmet.

former_member182372
Active Contributor
0 Kudos

I don`t know other solutions to hide URL except HTTP POST request and using frames.

Former Member
0 Kudos

Is it possible that your suggested soution in

could work with urls like above?

Former Member
0 Kudos

Sorry that i am messing this thread. I have a req similar to this. I need to hide url using HTTP POST. Could you pls help me out