Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jsp:useBean problem!

843836Apr 19 2005 — edited Apr 19 2005
HI,

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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2005
Added on Apr 19 2005
5 comments
166 views