File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display tag error

 
fahad siddiqui
Ranch Hand
Posts: 85
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use Display tag open source from sourceforge.net.

I wrote the same code as written in the basic tutorials:
request.setAttribute( "test", new TestList(10,false)); %>

<display:table name="test" >
<display:column property="id" title="ID" />
<display:column property="name" />
<display:column property="email" />
<display:column property="status" />
<display:column property="description" title="Comments"/>

</display:table>

On running, it gave the following error on the page:


java.lang.NoClassDefFoundError: org/apache/commons/lang/UnhandledException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)


Please advise.
 
Richard Green
Ranch Hand
Posts: 536
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
put apache commons lang jar file in your web-inf/lib folder and reload your webapp.

http://jakarta.apache.org/commons/lang/
 
fahad siddiqui
Ranch Hand
Posts: 85
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which version??
I already have a common-lang.jar in the lib folder.
 
fahad siddiqui
Ranch Hand
Posts: 85
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.
I put a new jar and it works.

now the values are being displayed. I have allowed sortable true to column.

But when i click on the column name, it displays on the jsp
"Nothing found to display. "

Why is it not sorting?

Please advise.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic