Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

user-agent's in java

Thread view: 
yawnmoth - 19 Mar 2007 19:34 GMT
In JavaScript, you can get them with navigator.userAgent, but what
about in Java?
Arne Vajhøj - 19 Mar 2007 20:27 GMT
> In JavaScript, you can get them with navigator.userAgent, but what
> about in Java?

Server side Java (JSP/Servlet) or client side Java (applet) ?

Arne
yawnmoth - 19 Mar 2007 22:03 GMT
> yawnmothwrote:
> > In JavaScript, you can get them with navigator.userAgent, but what
> > about in Java?
>
> Server side Java (JSP/Servlet) or client side Java (applet) ?
Applet.
Arne Vajhøj - 19 Mar 2007 22:44 GMT
>> yawnmothwrote:
>>> In JavaScript, you can get them with navigator.userAgent, but what
>>> about in Java?
>> Server side Java (JSP/Servlet) or client side Java (applet) ?
> Applet.

I think you need to have your applet call some JavaScript
code to get it.

Arne
Andrew Thompson - 19 Mar 2007 22:59 GMT
> In JavaScript, you can get them with navigator.userAgent, but what
> about in Java?

'Sure'*.  Why?  What does this ability
bring to the end user?

* Arne outlined the most direct method, there
are also other ways to determine which browser
an applet is running in, without JS support.

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.