cancel
Showing results for 
Search instead for 
Did you mean: 

Read Request URL in Web Dynpro

Former Member
0 Kudos

Hi @ all,

I have some upgrade work for my WD application from 6.4 to 7.

Before the upgrade I had some codings where the Request URL was read out like this way:

HttpServletRequest request = (HttpServletRequest)WDProtocolAdapter.getProtocolAdapter().getRequestObject();

String url = (String) request.getRequestURL().toString();

In NW 7 this coding doesn`t work at all. There must be a new method of access I cannot find.

I tried it with:

IWDRequest request = (IWDRequest)WDProtocolAdapter.getProtocolAdapter().getRequestObject();

...however there was no method to read out the complete URL like in getRequestURL() done before.

Can anybode help me?

Thx in advance

Mathias

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Accessing the HTTPServletRequest object is forbidden in WD and so the corresponding methods have also been deprecated/removed, but they reappear in 7.1 though. What is your exact requirement? Are you looking to read some request parameters? There might be other ways if you explain your scenario clearly.

Regards,

Satyajit.

Former Member
0 Kudos

Hi,

my exact requirement is the following one:

I want to read out the entire url request. For example http://sappep.server-customer.de:60000/irj/portal/anonymous/activation?guest_user=ep_selfreg_anon.

I need at first the entire url to get the serverinformation "http://sappep.server-customer.de"....

In a secound step I also need ulr-parameters. However more important is the whole query string.

How can I get it?

best regards

Mathias

Edited by: Mathias Hünnerkopf on Jul 23, 2008 11:32 AM