You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Graham Lea <Gr...@forge.com.au> on 2000/07/10 06:14:09 UTC

Checking state of socket.

Everyone know how if the client closes the connection between the request
coming in and the response going out, it generates a

     "java.net.SocketException: Connection reset by peer: socket write
error"

Well, I'm doing an MVC thing and I want to be able to detect whether the
user is still connected BEFORE forward()ing to a JSP.
I have tries:

     response.getWriter().checkError() - this always returns false

     response.isCommitted() - this only returns true AFTER forward()ing,
even if I do some println()s and flush()es

Can anyone think of another way to check it?


RE: Problem iterating a Vector

Posted by Robert Edgar <ro...@hkstar.com>.
Ignore this,
Just the error message was somewhat obscure it actually means the bean didnt
exist at all.

Fixed it now....

Rob

-----Original Message-----
From: Robert Edgar [mailto:robedgar@hkstar.com]
Sent: Monday, July 10, 2000 9:10 PM
To: struts-user@jakarta.apache.org
Subject: Problem iterating a Vector


I am having a problem iterating over a vector using the struts iterate tage.

According to the doc's the bean can be a Vector itself instead of a bean
which has a property that is a vector. In this case it is supposed to be OK
to only specify a name and not specify a property but when I tried this I
get the error message given below.

"javax.servlet.jsp.JspException: Cannot find property null for bean
attribute componentsList"

Which suggests that even though I didnt include the property it still lookks
for it.

Am I doing something wrong?

Rob


Problem iterating a Vector

Posted by Robert Edgar <ro...@hkstar.com>.
I am having a problem iterating over a vector using the struts iterate tage.

According to the doc's the bean can be a Vector itself instead of a bean
which has a property that is a vector. In this case it is supposed to be OK
to only specify a name and not specify a property but when I tried this I
get the error message given below.

"javax.servlet.jsp.JspException: Cannot find property null for bean
attribute componentsList"

Which suggests that even though I didnt include the property it still lookks
for it.

Am I doing something wrong?

Rob