Fejl i compilering
Jeg har en jsp side som giver fejl når jeg forsøger at køre den.Her er min kode som giver fejl:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ page import="com.novell.ecb.Connection" %>
<%@ page errorPage="error.jsp" %>
<%@ page import="com.novell.ecb.*" %>
<%@ page import="com.novell.ecb.ldap.*" %>
<%@ page import="com.novell.ecb.security.*" %>
<HTML>
<HEAD>
<META http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Page Designer V3.5.1 for Windows">
<META http-equiv="Content-Style-Type" content="text/css">
<TITLE></TITLE>
<!-- main stylesheet -->
<LINK rel="stylesheet" type="text/css" href="../hf_style1.css">
</HEAD>
<BODY>
<TABLE border="0" cellpadding="0" cellspacing="3" bgcolor="white">
<TBODY>
<TR>
<TD bgcolor="#CCCC99" width="400">
<DIV class="tablehead1">ListLdapSyntaxDefinitions</DIV>
</TD>
</TR>
<jsp:useBean id="bean" class="com.novell.ecb.ldap.AuthenticateLdap" scope="request" />
<%
// Set the input properties of the command bean
bean.setURL("ldap://192.168.132.88:389");
bean.setDN("cn=admin, o=it");
bean.setPassword("123456");
// Call the execute method of the command bean
bean.execute();
// Query the output properties of the command bean
// Save connection object in session
session.setAttribute("Connection", bean.getConnection());
%>
<!-- Instantiate the command bean -->
<jsp:useBean id="bean" class="com.novell.ecb.ldap.ListLdapSchemaSyntaxDefinitions" scope="request" />
<%
// Set the input properties of the command bean
bean.setConnection((Connection)session.getAttribute("Connection"));
// Call the execute method of the command bean
bean.execute();
// Query the output properties of the command bean
String[] names = bean.getSyntaxes();
for (int i=0; i < names.length; i++)
{
String color = (i%2 == 0)? "#FFFFFF" : "#EFEEE9";
%>
<TR bgcolor="<%=color%>">
<TD>
<DIV class="indent1"><%=names[i]%></DIV>
</TD>
</TR>
<%
}
%>
</TBODY>
</TABLE>
</BODY>
</HTML>
Her er fejlmeldingen:
org.apache.jasper.compiler.CompileException: SYS:\tomcat\322\webapps\ROOT\ldap\ListLdapSyntaxDefinitions.jsp(53,0) useBean: Duplicate bean name: bean
ER der nogen som kan se hvad jeg gør forkert(jeg ved intet om jsp) og kan side mig hvordan jeg så skal gøre?