detect users java version from servlet...

T

tiewknvc9

Hi!

Im trying to figure out how to detect the users java version from a
servlet.

If I use String strVersion = (System.getProperty("java.version"));

I get the java version of the server, is there any way to get the users
java version?
 
I

impaler

tiewknvc9 said:
Hi!

Im trying to figure out how to detect the users java version from a
servlet.

If I use String strVersion = (System.getProperty("java.version"));

I get the java version of the server, is there any way to get the users
java version?

You get the version of the JVM the app is running on.
If it's a web app, the user doesn't even need java unless your app is
an applet but in this case there is no need for servlets.
 
M

Mike Schilling

tiewknvc9 said:
Hi!

Im trying to figure out how to detect the users java version from a
servlet.

If I use String strVersion = (System.getProperty("java.version"));

I get the java version of the server, is there any way to get the users
java version?

No, in fact there's no way to tell if the client is using Java at all. It's
really the same question as

I'm reading a disk file. How can I tell what version of Java was used
to write the file?

In both cases you're processing a sequence of bytes, and there is no
evidence how those bytes were constructed.
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

tiewknvc9 said:
Im trying to figure out how to detect the users java version from a
servlet.

If I use String strVersion = (System.getProperty("java.version"));

I get the java version of the server, is there any way to get the users
java version?

The only way is to have the client side code send something
to the server side indicating the version.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top