on 01-13-2009 1:08 PM
hello all,
I was asked to check the possibility to get data from http header in web dynpro.
Does any one have an idea if this is possible?
thanks,
Michal
Thanks Satyajit.
I'm not on CE. I found a class HTTPRequestInput, does any one have an example how to use it.
can I use servlet.jar if i'm not using CE, where do I add the jar file?
thanks,
Michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
Can you try this code to read HTTp header parameter.
String paramValue =
WDProtocolAdapter().getProtocolAdapter().getRequestObject().
getParameter(u201Cparamu201D); // Paramete Name
Alternatively you can download servlet.jar from:
http://java.sun.com/products/servlet/download.html
Edited by: kunal kotak on Jan 14, 2009 3:10 PM
yes, thanks. I figured out the parameters issue, I hope..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks all.
Edited by: michal shalom on Jan 14, 2009 11:59 AM
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. If you are on CE then 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 |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.