on 03-16-2009 8:17 PM
I am trying to read HTTP Request Header Variables from my Web DynPro application. In JSP, it's really simple - something like <% request.getHeader("variable name"); %>
I saw some posts here, but I can't find methods like
.getHttpServletRequest();
.getProtocolRequest();
I am using NWDS 7.0.15. Please help!
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
String text = request.getParameter("<parameterName>");
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The only header I get is sap-ep-version, but I am referencing my WD application via iView.
When I access my WD app via URL, then it doesn't have any HTTP headers.
I can pass in URL parameters, which is picked up as HTTP headers. For security reasons, I would rather not send information as URL parameters.
I am guessing the code above is for URL parameters. Is there an option/configuration I am missing here?
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.