on 08-31-2009 11:28 AM
I need for improved logging infos the browser infos (type and version) in my Web Dynpro application, although I checked different posts (can't get work with HttpServletRequest or using IWebContextAdapter) I couldn't find a working solution for WD 7.0.19.
Any other good idea?
Thanks
Stefan
HttpServletRequest httpReq = (HttpServletRequest) TaskBinder.getCurrentTask().getProtocolAdapter().getRequestObjectInternal().getProtocolRequest();
httpReq.getHeader("USER_AGENT");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan Portmann,
You can use this also.
IRequest requestObj = ((IProtocolAdapter) WDProtocolAdapter.getProtocolAdapter()).getRequestObjectInternal();
HttpServletRequest request = (HttpServletRequest)requestObj.getProtocolRequest();
requet.getHeader("USER-AGENT");
Yes, should not use java native api.Check with EPCF java script api.U may get solution.
Regards,
srikanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.