|
-
September 27th, 2000, 12:13 PM
#1
Emergent, please help ???
Could you please help me to find out this error :
500 Internal Server Error
/mymap5/jsp/browse.jsp:
null
java.lang.ClassCastException
at ConceptBean.getConceptBeans(ConceptBean.java, Compiled Code)
at jrun__jsp__browse2ejspf._jspService(jrun__jsp__browse2ejspf.java, Compiled Code)
at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java, Compiled Code)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java, Compiled Code)
at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java, Compiled Code)
at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
AND THIS IS : Browse.jsp :
<%@ page import="ConceptBean" %>
<jsp:useBean id="concept" class="ConceptBean" />
<%
ConceptBean[] concepts = concept.getConceptBeans();
%>
<html>
<head>
<title>Browse for a node</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<form method="post" action="">
<table width="10" border="0" cellspacing="0" cellpadding="0" align="center">
<tr bgcolor="#FFFFCC">
<td><font face="Verdana, Arial, Helvetica, sans-serif" color="#0000CC" size="2">Click
on a node in this list then click on "select" to choose it.</font></td>
</tr>
<tr>
<td>
<div align="center">
<select name="select" size="10">
<%
for (int i=0; i < concepts.length; i++) {
concept = concepts[i];
%>
//<option value="<jsp:getProperty name="concept" property="id_number"/>">
<jsp:getProperty name="concept" property="id_number"/>
<jsp:getProperty name="concept" property="label"/>
</option>
<% } %>
Thanks
-
September 27th, 2000, 12:47 PM
#2
Re: Emergent, please help ???
Are you sure getConceptBeans() returns an array of ConceptBean?
Kannan
-
September 27th, 2000, 03:14 PM
#3
Re: Emergent, please help ???
i don't do jsp programming.. but if it is close to java look at this line:
for (int i=0; i < concepts.length; i++) {
concept = concepts;
is concept an array of some item or a singular item? concepts is an array as you have it.
"There are no facts, only interpretations."
-Friedrich Nietzsche
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|