screen resolution on JSP page
Posted on 2005-03-25
I am very new to programming so solution in complete syntax will be great!
I am using top navigation on my web site. This navigation is build inside table. This navigation has tabs. I am including this top navigation on my .JSP pages. I want to do following: When user has 800X600 resolution I want to align my navigation table to left, and when user has 1024X768 resolution I want to align my navigation table to right. I have following script that detects browser resolution. But how can I create jsp variable that I can use in my JSP page to say following: <table If (var for 800X600) align=left else align=right>.
if ((screen.width>=1024) && (screen.height>=768))