Skip to Content
author's profile photo Former Member
Former Member

Read Request URL in Web Dynpro

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2008 at 06:04 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.