Can a servlet resolve the client browser resolution like it does it fo finding the client browser agent from the request header
requestheader.getuseragent()
Please help me
-
Need help on servlet (2 messages)
- Posted by: laxman Prakash
- Posted on: February 23 2001 12:33 EST
Threaded Messages (2)
- Need help on servlet by Andy Nguyen on February 26 2001 14:49 EST
- Need help on servlet by Keith McRae on February 28 2001 11:15 EST
-
Need help on servlet[ Go to top ]
- Posted by: Andy Nguyen
- Posted on: February 26 2001 14:49 EST
- in response to laxman Prakash
I don't think you can get client browser's resolution from a servlet. The only information about a client that the server has access to, are those that are set in the HTTP Header (like browser name/version) and ones that you send the servlet through a form or in the URL. One way to get the resolution would be to use JavaScript to get it and build the call to the servlet dynamically on the client side.
Lookup screen.height and screen.width in a JavaScript reference book.
Andy -
Need help on servlet[ Go to top ]
- Posted by: Keith McRae
- Posted on: February 28 2001 11:15 EST
- in response to laxman Prakash
Check out a product called BrowserHawk (http://www.cyscape.com/products/bhawk/javabean.asp).
I have not used it myself but does provide the functionality you require.
Keith