on 10-24-2008 11:44 AM
Hello All,
I'd like to know, what browser is used on the client, in which my WebDynpro application runs. Still there is a different behariour between IE and Fireforx (PC / Mac). So I'd like to give the user a different, but working output.
Wbdynpro does a browser detection. So I suppose, there is a possibility to get this information in my Webdynpro code.
Thanks for help and best regards,
Christian
Hi,
Following code may help you to find the browser
HttpServletRequest request = (HttpServletRequest)WDProtocolAdapter.getProtocolAdapter().getRequestObject();
String value = request.getHeader("<Param Name>");
You need to have the depenedency to servlet.jar.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ayyapparaj,
thank you for this Idea, but I get a java.lang.ClassCastException on HttpServletRequest request = (HttpServletRequest)WDProtocolAdapter.getProtocolAdapter().getRequestObject();
Additional info: We are on NW04 SP19
Best Regards,
Christian
Edited by: Christian Schebesta on Oct 24, 2008 1:58 PM
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.