I know this is a simple one but Im a bit confused in doing this.
Basically, I want to get the Screen Resoultion of the client machine using my JSP.
I have this code in my Bean.
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); return screenSize.getWidth();
Problem is it always returns 1152, whatever my screen resoltuion is.
Also I have a JS variable
which return the true and correct screen size.
My JS variable changes when I change my screen resoultion while my Java variable does not.
My question really is why does screenSize.getWidth() always return 1152??
(Im using IE 6)