Try deploying the example application and see if that works. It looks like you are missing the commons-beanutils.jar from your webapps classpath.
> -----Original Message----- > From: Jeffrey Anderson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2003 7:26 PM > To: [EMAIL PROTECTED] > Subject: [displaytag-user] java.lang.NoClassDefFoundError > > > Hi, I have the following code in a JSP Bean that accesses a DB: > > public List getSessionLogsAsList (int sessionId, int userId) { > > String sql = "SELECT * FROM SessionLogs " + > "WHERE (SessionID = ?) AND (UserID = ?)"; > > Vector v = new Vector(); > > try { > this.conn = this.pool.getConnection(); > this.pstmt = this.conn.prepareStatement(sql); > this.pstmt.setInt(1,sessionId); > this.pstmt.setInt(2,userId); > > this.rs = this.pstmt.executeQuery(); > > while (this.rs.next()) { > SessionLogEntry sle = new SessionLogEntry(); > > sle.setAccessDate(rs.getString("Access")); > sle.setNumProblems(rs.getString("NumProblems")); > sle.setSessionId(rs.getString("SessionId")); > sle.setSessionLogId(rs.getString("SessionLogId")); > sle.setTotalProblems(rs.getString("TotalProblems")); > sle.setUserId(rs.getString("UserId")); > sle.setNumRight(rs.getString("NumRight")); > > v.add(sle); > } > > this.rs.close(); > this.pstmt.close(); > this.conn.close(); > } > catch(SQLException sqle) { > sqle.printStackTrace(); > } > > return v; > } > > And in a JSP Page I have: > > <% > List l = > db.getSessionLogsAsList(Integer.parseInt(request.getParameter("sid")), > > Integer.parseInt(request.getParameter("userid"))); > pageContext.setAttribute("list",l, PageContext.PAGE_SCOPE); > > %> > > .... > > ..... > > //Code for display tag: > > <display:table name="list" export="true"> > <display:column property="totalProblems" title="Total Problems"/> > <display:column property="numRight" title="Number Right" /> > <display:column property="accessDate" title="Access Date"/> > <display:column property="numProblems" title="Number Of > Problems" /> </display:table> > > > My problem is that this call generates an exception: > > java.lang.NoClassDefFoundError > at > org.apache.commons.beanutils.PropertyUtils.getReadMethod(Prope > rtyUtils.java: > 1114) > at > org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(P > ropertyUtils.j > ava:1178) > at > org.apache.commons.beanutils.PropertyUtils.getNestedProperty(P > ropertyUtils.j > ava:772) > at > org.apache.commons.beanutils.PropertyUtils.getProperty(Propert > yUtils.java:80 > 1) > at org.apache.taglibs.display.TableTag.lookup(TableTag.java:1845) > at > org.apache.taglibs.display.TableTag.getHTMLData(TableTag.java:909) > at org.apache.taglibs.display.TableTag.doEndTag(TableTag.java:575) > > > ========================================= > > I can't for the life of me figure out where this is going > wrong. I have code on the JSP page that can access the list > object in the page context just fine...and the import > statement on the page imports the class that defines the > objects in the list and is also accessible from the > page...I'm at a loss for words here. > > What could be going wrong???? > > Thanks in advance. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > displaytag-user mailing list [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/displaytag-user > > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user

