cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine the users Browser (IE or WML)

Former Member
0 Kudos

is there a way to programatically determine what the users browser is?

I have a webdynpro that can run on both Blackberry (WML browser) and IE via the portal.

I need a way to identify the users browser from Webdynpro Java.

Accepted Solutions (1)

Accepted Solutions (1)

former_member194668
Active Participant
0 Kudos

Hi,

When I ran the following statement in IE,

TaskBinder.getCurrentTask().getClient().getClientDescription().getName()

I got it as "HtmlClient".

Try from BB, you may get "WmlClient"

-Aarthi

Answers (3)

Answers (3)

Former Member
0 Kudos

Yes we currently are using 2 URLs to launch the apps, however, we wanted to see if we could just give 1 URL out to the end user....so they wouldn't have to remember which one to go to for Blackberry and which one to go to for IE.

I have a solution working....I just need to find a way to detect the client without using the TaskBinder.

Let me know if you find another way ....

Former Member
0 Kudos

aarthi mathivanan

I am afraid TaskBinder might not be supported in the future since it is not part of the API ?

see this [thread....|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1222] [original link is broken] [original link is broken] [original link is broken];

let me know your thoughts....

are there any WD or IWD classes that do the same?

former_member194668
Active Participant
0 Kudos

Hi,

If you want to traverse to a different app if its WmlClient, fire an exit plug and in the exit plug sepecify the url of another application. Otherwise continue in the same application.

Let me find out, if there is another way to get client instead of task binder.

-Aarthi

Former Member
0 Kudos

Thanks,

Yes it did return "WmlClient".

now i need to figure out how to call one webdynpro application if the its "HtmlClient" and call a different application if its "WmlClient"...any ideas?

former_member194668
Active Participant
0 Kudos

Hi,

One more thought... if you are using 2 different apps for two different clients (Html and Wml),

you can very well point to two different URLs (URLs change with apps).

So in that case, do you really want to find out client type?

-Aarthi