cancel
Showing results for 
Search instead for 
Did you mean: 

Get Browser infos in WD 7.0.19

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos


HttpServletRequest httpReq = (HttpServletRequest) TaskBinder.getCurrentTask().getProtocolAdapter().getRequestObjectInternal().getProtocolRequest();
httpReq.getHeader("USER_AGENT");

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Fine, that works ("USER-AGENT" instead of "USER_AGENT" is necessary).

But "HttpServletRequest" is not part of the public API (see also ) and so I thougt it must exist another solution too.