Hi All,
I have a jsp that retrieves values from a table through a bean.
I get the following error.
-79716 java.sql.SQLException: null java.net.SocketException: Socket closed
I am using Informix.
Here is my code.
<jsp:useBean id="rangeBean" scope="page" class="range.RangeBean" />
<body>
<form>
<%
java.sql.ResultSet rs = null;
rs=rangeBean.getMembers();
try {
while(rs.next())
{
out.println(rs.getString(1)+"<br>");
}
}
catch(java.sql.SQLException e) {
out.println(e.getErrorCode()+" "+e.toString());
}
catch(Exception e) {..}
%>
Can somebody help me out.
Thanks
JS
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets