on 06-16-2008 1:03 PM
Hello:
In WebDynpro Java application, How can I get a parameter from HTTP header ?
I don't want to read this parameter from the request URL parameter like:
WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter()
I want to get parameters in the HTTP Header. Is it posible ?
Thank
Hi,
You must read them from request object only..... How does your application read the URL String directly.... I don't think we can.
Regards
Ramesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Satyajit:
thanks for your answer, it's a good idea, but I haven't the method getProtocolRequest() in my Developer Studio 7.0.10. Is this method available in any next version, or in version 7.1 ?
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can read the header parameter using the HTTPServletRequest object. Try this:
HttpServletRequest request = (HttpServletRequest) WDProtocolAdapter.getProtocolAdapter().getRequestObject().getProtocolRequest();
String value = request.getHeader("<name of parameter>");
You will need "servlet.jar" added to your project or add a DC dependency to it.
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.