JSP is getting submitted on resize 2004-12-13 - By Govind Kotwani
Back
Hi,
We have a jsp based application in which browser is made full screen as soon as user logs in (i.e first login page is opened in normal size).Following is the code through which we are opening browser in full screen after user logs in
<% String url = request.getContextPath() + "/jsps/common/index.jsp"; %> <HTML> <head> <script> var windowProperties; windowProperties = "alwaysLowered=yes,dependent=yes,directories=no,hotkeys=no,left=0,top=0,width =1024,height=750,location=no,menubar=no,personalbar=no,scrollbars=no,status=yes ,titlebar=no,toolbar=no,z-lock=no,windowbar=no,resizable=yes"; window.open("<%=url%>","zeroLevelWindow",windowProperties ,false); </script> </head> </HTML>
Now the problems is
When we try to resize the screen,jsp is getting submitted again and last action done on jsp is getting fired e.g say first we have clicked query button on screen onclick of which jsp is submitted and results are displayed, now after query if we resize this browser window then last action (i.e query) is getting fired and jsp is getting submitted to server.
Any ideas why it is happening and how to stop it.
Thanks and Regards Govind
DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services Limited. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services limited on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services Limited takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services limited shall be understood as neither given nor endorsed by Tata Consultancy Services Limited or any affiliate of Tata Consultancy Services Limited. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you.
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
<br><font size=2 face="sans-serif">Hi,</font> <br> <br><font size=2 face="sans-serif">We have a jsp based application in which browser is made full screen as soon as user logs in (i.e first login page is opened in normal size).Following is the code through which we are opening browser in full screen after user logs in</font> <br> <br><font size=2 face="sans-serif"><i><%</i></font> <br><font size=2 face="sans-serif"><i>String url = request.getContextPath() + "/jsps/common/index.jsp";</i></font> <br><font size=2 face="sans-serif"><i>%></i></font> <br><font size=2 face="sans-serif"><i><HTML></i></font> <br><font size=2 face="sans-serif"><i><head></i></font> <br><font size=2 face="sans-serif"><i><script></i></font> <br><font size=2 face="sans-serif"><i>var windowProperties;</i></font> <br><font size=2 face="sans-serif"><i>windowProperties = "alwaysLowered =yes,dependent=yes,directories=no,hotkeys=no,left=0,top=0,width=1024,height=750 ,location=no,menubar=no,personalbar=no,scrollbars=no,status=yes,titlebar=no ,toolbar=no,z-lock=no,windowbar=no,resizable=yes";</i></font> <br><font size=2 face="sans-serif"><i>window.open("<%=url%>", "zeroLevelWindow",windowProperties ,false);</i></font> <br><font size=2 face="sans-serif"><i></script></i></font> <br><font size=2 face="sans-serif"><i></head></i></font> <br><font size=2 face="sans-serif"><i></HTML></i></font> <br> <br><font size=2 face="sans-serif">Now the problems is</font> <br> <br><font size=2 face="sans-serif"> When we try to resize the screen,jsp is getting submitted again and last action done on jsp is getting fired e.g say first we have clicked query button on screen onclick of which jsp is submitted and results are displayed, now after query if we resize this browser window then last action (i.e query) is getting fired and jsp is getting submitted to server.</font> <br> <br><font size=2 face="sans-serif">Any ideas why it is happening and how to stop it.</font> <br> <br><font size=2 face="sans-serif">Thanks and Regards</font> <br><font size=2 face="sans-serif">Govind</font> <br> <br> <br> <br> <br> <br><font size=2 face="sans-serif"><br> </font> <table><tr><td bgcolor=#ffffff><font color=#000000>DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services Limited. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services limited on any subject matter.<br> Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services Limited takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services limited shall be understood as neither given nor endorsed by Tata Consultancy Services Limited or any affiliate of Tata Consultancy Services Limited. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. <br> Thank you.<br> </font></td></tr></table> =========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". <p>
|
|