cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro header variables of the request

Former Member
0 Kudos

Hi all,

does any one have a clue how to get header variables of a request inside a webDynpro. We receive a certain header variable within the request which we need to readout inside the WebDynpro. Since now we didn't find a way how to get the request or even the header variables.

The only thing we saw is a IWDWebContextAdapter which contains only very poor information.

Thanks for any help in advance!!

Martina

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

1. Add 'servlet.jar' to WebDynpro libraries.

2. Add the following code for fetching the headers.

HttpServletRequest request =((IWebContextAdapter)

WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();

Enumeration enum = request.getHeaderNames();

Former Member
0 Kudos

Hi Martina,

AFAIK this is not supported in WebDynpro.

Whatever you need cant it be passed as request param hich is accessible thru IWDWebContextAdapter.

Thanks and Regards,

Rohit Jaiswal