aspose file tools*
The moose likes JSP and the fly likes Display tag error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Display tag error" Watch "Display tag error" New topic
Author

Display tag error

fahad siddiqui
Ranch Hand

Joined: Jun 14, 2006
Posts: 85
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

Joined: Aug 25, 2005
Posts: 536
put apache commons lang jar file in your web-inf/lib folder and reload your webapp.

http://jakarta.apache.org/commons/lang/


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
fahad siddiqui
Ranch Hand

Joined: Jun 14, 2006
Posts: 85
which version??
I already have a common-lang.jar in the lib folder.
fahad siddiqui
Ranch Hand

Joined: Jun 14, 2006
Posts: 85
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
 
subject: Display tag error