i faced while using display taglib;please help me;
i have created one bean class;
package example;
import java.util.*;
public class player
{
private
String name;
ArrayList player = new ArrayList();
String arr[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o"};
public player()
{
for(int i=0;i<arr.length;i++)
{
this.name = arr[i];
System.out.println(".......in model="+this.name);
}
}
}
this is my TAG.jsp file
<%@ include file="init.jsp" %>
<%@ page import="java.util.*"%>
<%
session.setAttribute( "test", new player() );
System.out.println("..............."+session.getAttribute("test"));
%>
<display:table name="test" scope="session" sort="list" pagesize="5" id="table1">
<display:column property="name" title="name" group="1" sortable="true" headerClass="sortable"/>
</display:table>
init.jsp
<%@ taglib uri="/WEB-INF/displaytag-11.tld" prefix="display" %>
<%@ page import="example.player%>
when i run TAG.jsp i got this error
Exception: [.LookupUtil] Error looking up property "name" in object type "example.player"Cause: Unknown property 'name'
java.lang.Object org.displaytag.util.LookupUtil.getBeanProperty(java.lang.Object, java.lang.String)
LookupUtil.java:218
java.lang.Object org.displaytag.model.Column.getValue(boolean)
Column.java:96
java.lang.String org.displaytag.model.Column.createChoppedAndLinkedValue()
Column.java:147
java.lang.String org.displaytag.model.Column.getOpenTag()
Column.java:123
java.lang.String org.displaytag.tags.TableTag.getTableBody()
TableTag.java:1444
java.lang.String org.displaytag.tags.TableTag.getHTMLData()
TableTag.java:1203
int org.displaytag.tags.TableTag.doEndTag()
TableTag.java:885
void _TAG._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
TAG.jsp:14
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
HttpJsp.java:139
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
JspPageTable.java:317
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
JspServlet.java:465
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
JspServlet.java:379
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
HttpServlet.java:853
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
ServletRequestDispatcher.java:721
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
ServletRequestDispatcher.java:306
boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
HttpRequestHandler.java:767
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
HttpRequestHandler.java:259
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
HttpRequestHandler.java:106
void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
PooledExecutor.java:803
void java.lang.Thread.run()
Thread.java:484
i have doubt that what i am doing is correct or not;please guide me;is is necassary to create player class;
bye
chaitanya