Shilohcity
Technical User
Hi there
I am pretty new to JSP pages and was wondering if anybody could help me out with this.
I am using the following code in the hope I can set the value of a framset page for scroll bars on 640 x 480 screens. It is actually returning me the value of the server screen size and not the client screen...This confused me for a very long time . The same code running as javascript works fine though.
page import="java.awt.*"
// Get toolkit
Toolkit toolkit = Toolkit.getDefaultToolkit();
// Get size
Dimension dimension = toolkit.getScreenSize();
// Print size
System.out.println ("Width: " + dimension.width);
System.out.println ("Height: " + dimension.height);
I am using IE5 and serving JSP through Tomcat 3.3 and IIS.
All help most appreciated.
Justin X-)
"Creativity is the ability to introduce order into the randomness of nature." Eric Hoffer
Visit me at
I am pretty new to JSP pages and was wondering if anybody could help me out with this.
I am using the following code in the hope I can set the value of a framset page for scroll bars on 640 x 480 screens. It is actually returning me the value of the server screen size and not the client screen...This confused me for a very long time . The same code running as javascript works fine though.
page import="java.awt.*"
// Get toolkit
Toolkit toolkit = Toolkit.getDefaultToolkit();
// Get size
Dimension dimension = toolkit.getScreenSize();
// Print size
System.out.println ("Width: " + dimension.width);
System.out.println ("Height: " + dimension.height);
I am using IE5 and serving JSP through Tomcat 3.3 and IIS.
All help most appreciated.
Justin X-)
"Creativity is the ability to introduce order into the randomness of nature." Eric Hoffer
Visit me at