Try using this : 

function loadOne() {
        document.PipelineFilterForm.submit();
        setTimeout(self.close(),5000);
}
        This should give the form enough time to get submitted, before you
actually close the window. If you're still getting an error, try increasing
the time( which is in milliseconds by the way).

        Regards, Dimitar

-----Original Message-----
From: srinivas [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 27, 2002 5:31 PM
To: Struts Users Mailing List
Subject: RE: self.close() exception

hello,

thats not an error actually.
You are submitting a form and closing the window. So the webserver couldn't
complete ur request so the stack trace.

regards,
srinivas

-----Original Message-----
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 11:15 PM
To: Struts Group (E-mail)
Subject: self.close() exception


Hi,
I'm trying to close a window from a javascript function and getting this
error:

java.net.SocketException: socket closed (code=0)
        java.lang.Throwable(java.lang.String)
        java.lang.Exception(java.lang.String)
        java.io.IOException(java.lang.String)
        java.net.SocketException(java.lang.String)
        int java.net.SocketInputStream.socketRead(byte [], int, int,
java.net.SocketImpl, java.io.FileDescriptor)
        int java.net.SocketInputStream.read(byte [], int, int)
        int java.net.SocketInputStream.read()
        java.lang.String java.io.DataInputStream.readLine()
        void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
java.net.Socket)
        void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run()
        void java.lang.Thread.run()

The code is:
function setFilter() {
        document.PipelineFilterForm.submit();
        self.close();
}

<html:button value="Set filter" onclick="javascript:setFilter();"
property="submitButton"/>

Pls help.

Thnx,
Bhaskar

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to