
Originally Posted by
sposetti
Can you upload or paste your JSP code?
Here they are
MVideoAdd.jsp (is simple form)
Code:
[...]
<BR>
<form id="addvideoform" method="post" action="DoAddVideo.jsp" ENCTYPE="multipart/form-data">
<table border="0" width="400" id="table1">
[...]
<tr>
<td align="right">Video</td>
<td align="left"><input type="file" name="datafile" size="45"></td>
</tr>
<tr>
<td>
<input name="Submit1" type="submit" value="Aggiungi" onClick="window.open('AddA.jsp', 'popupStatus', 'toolbar=0, location=0, status=0, menubar=0, scrollbars=1, resizable=1, width=320, height=240'); ValidaForm(this.form); return false;"/>
</td>
</tr>
</table>
</form>
[...]
function ValidaForm(myform) {
[...] When the button "submit" is pressed a new window is opened and a status popup is opened with AddA.jsp
In AddA.jsp I read the session content every three seconds
Code:
<html>
<head>
[...]
</head>
<body>
<%@ page import="java.lang.*, java.sql.*, com.mysql.jdbc.Driver" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="org.apache.commons.fileupload.*"%>
<%@ page import="com.zimbra.cs.account.*, com.zimbra.cs.zimlet.*" %>
<%@ page import="java.util.Date, java.text.DateFormat, java.text.SimpleDateFormat" %>
<P align=center> add 1<BR>
<img id="statusimg" src="img/caricamento.gif" alt="caricamento" border="0">
</P>
<%
[...]
out.println(" setTimeout(\"window.location.reload()\", 3000);");
HttpSession session = request.getSession();
%>
</body>
</html>