Hello,
This following peice of code was working fine with jboss 3.2.7 and tomcat 5.0. After i upgrdaed to JBoss 4.2.1.GA with tomcat 6.x, the code no longer works.
//login.jsp if(request.getParameter( "ScreenResolutionHeight" ) == null ) { %> <html> <head> <title>Please wait one moment...</title> </head> <body onload='SubmitOnLoad();'> <form method='post' id='ScreenResolutionForm'> <input type='hidden' name='ScreenResolutionWidth' value='1024'> <input type='hidden' name='ScreenResolutionHeight' value='768'> <script> function SubmitOnLoad() { var this_form = FindElementById( 'ScreenResolutionForm' ); this_form.ScreenResolutionWidth.value = window.screen.availWidth; this_form.ScreenResolutionHeight.value = window.screen.availHeight; this_form.BrowserType.value = navigator.appName; this_form.submit(); } function FindElementById( id ) { if( document.getElementById ) { return document.getElementById( id ); } else if (document.layers) { return document.layers[id]; } else if (document.all) { return document.all[id]; } return undefined; } </script> </body> </html> <% }else { ............
Can't it be related to HTML errors? You don't provide an action (required by HTML spec), neither you close the form tag. Try it and if it doesn't help provide us the full JSP.