Hi I'm having problems displaying information that I am retrieving from a database through an sql query.
My jsp code is as follows:
<%@ page language="java" contentType="te xt/html" errorPage="erro rpage.jsp" import="java.sq l.*, java.util.*" %>
<jsp:useBean id="connect" class="myBeans. HostelConnectBe an" />
<jsp:setPropert y name="connect" property="*" />
<html><head><ti tle>Login</title></head>
<body>
These are the hostels: <%= connect.selectH ostel() %>
</body></html>
But the output from this is:
These are the hostels: oracle.jdbc.dri ver.OracleResul tSet@e134e6 instead of displaying the hostels.
Can anyone shed any light on why this is happening?
Thanks
My jsp code is as follows:
<%@ page language="java" contentType="te xt/html" errorPage="erro rpage.jsp" import="java.sq l.*, java.util.*" %>
<jsp:useBean id="connect" class="myBeans. HostelConnectBe an" />
<jsp:setPropert y name="connect" property="*" />
<html><head><ti tle>Login</title></head>
<body>
These are the hostels: <%= connect.selectH ostel() %>
</body></html>
But the output from this is:
These are the hostels: oracle.jdbc.dri ver.OracleResul tSet@e134e6 instead of displaying the hostels.
Can anyone shed any light on why this is happening?
Thanks
Comment