RE: Off-topic -- how can I get the client browser resolution in servlet?

"Steve Swett" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Organization Best Computer Systems, Inc.
Message-ID <006501c375f9$40e79090$c900a8c0@Satellite2430>
Here's a Java example:

    // Set location of messageFrame
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    messageFrame.setLocation( (screenSize.width - 200) / 2 ,
                              (screenSize.height - 100) / 2);


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of THAPA Damar
Sent: Sunday, September 07, 2003 7:35 AM
To: [email protected]
Subject: [Barracuda] Off-topic -- how can I get the client browser
resolution in servlet?

Hi,

Since the XMLC/barracuda users can adjust the image sizes, or even use 
different images, easily based on the client's browser resolution, if 
known, I am asking this to the Barracuda mailing list, hoping some one 
may have done this before.
   
In javascript the following code provides the resolution height and
width:

    var SCRwidth  = window.screen.width;
    var SCRheight = window.screen.height;

How can I get the same thing in Java?  Any java, or barracuda, classes  
for this purpose?

Any pointers would be highly appreciated.

With regards,

Damar




_______________________________________________
Barracuda mailing list
[email protected]
http://barracudamvc.org/lists/listinfo/barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.