Discussions

Web tier: servlets, JSP, Web frameworks: Need help on servlet

  1. Need help on servlet (2 messages)

    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

    Threaded Messages (2)

  2. Need help on servlet[ Go to top ]

    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
  3. Need help on servlet[ Go to top ]

    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