jsp:useBean problem!
843836Apr 19 2005 — edited Apr 19 2005HI,
im having problems with a jsp page using jsp:useBean.
The problem is that the server spits out a "page cannot be displayed" page. Here is the coding for the page.
<%@ page errorPage = "studentErrorPage.jsp" %>
<%@ page import = "assign.StudentBean"%>
<jsp:useBean id="student" scope="session" type="assign.StudentBean"/>
<jsp:useBean id="studentData" scope="request" class="assign.PersonDataBean" />
<html>
<head>
<title>
Student Login
</title>
</head>
<body>
<jsp:setProperty name = "student" property = "*" />
<%--
if (Integer.toString(student.getID()) == null)
{
--%>
<form method = "post" action = "studentLogin.jsp">
<p>Enter Your StudentID Number</p>
<table>
<tr>
<td>Student ID</td>
<td>
<input type = "text" name = "studentID"/>
</td>
</tr>
<tr>
<td colspan = "2">
<input type = "submit" value = "Submit" />
</td>
</tr>
</table>
</form>
<%--
}
else{
studentData.getStudentList(student);
--%>
<%--<jsp:forward page = "studentClassesView.jsp" />--%>
<%--
}
--%>
</body>
</html>
But when i put a comment around the <jsp:useBean id="student" scope="session" type="assign.StudentBean"/> line of coding the page seems to load can anyone see the problem?