Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
JSP - A mailing list about Java Server Pages specification and reference
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
JSP is getting submitted on resize

JSP is getting submitted on resize

2004-12-13       - By Govind Kotwani

 Back
Reply:     1     2  


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>&lt;%</i></font>
<br><font size=2 face="sans-serif"><i>String url = request.getContextPath()
+ &quot;/jsps/common/index.jsp&quot;;</i></font>
<br><font size=2 face="sans-serif"><i>%&gt;</i></font>
<br><font size=2 face="sans-serif"><i>&lt;HTML&gt;</i></font>
<br><font size=2 face="sans-serif"><i>&lt;head&gt;</i></font>
<br><font size=2 face="sans-serif"><i>&lt;script&gt;</i></font>
<br><font size=2 face="sans-serif"><i>var windowProperties;</i></font>
<br><font size=2 face="sans-serif"><i>windowProperties = &quot;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&quot;;</i></font>
<br><font size=2 face="sans-serif"><i>window.open(&quot;&lt;%=url%&gt;&quot;,
&quot;zeroLevelWindow&quot;,windowProperties
,false);</i></font>
<br><font size=2 face="sans-serif"><i>&lt;/script&gt;</i></font>
<br><font size=2 face="sans-serif"><i>&lt;/head&gt;</i></font>
<br><font size=2 face="sans-serif"><i>&lt;/HTML&gt;</i></font>
<br>
<br><font size=2 face="sans-serif">Now the problems is</font>
<br>
<br><font size=2 face="sans-serif">&nbsp;When we try to resize the screen,jsp
is getting submitted again and last action done on jsp is getting fired
e.g say &nbsp;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 &nbsp;query) &nbsp; 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>

©2008 junlu.com - Jax Systems, LLC, U.S.A.