File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Display tag error" Watch "Display tag error" New topic

Display tag error

fahad siddiqui
Ranch Hand

Joined: Jun 14, 2006
Posts: 85
I am trying to use Display tag open source from

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"/>


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

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

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.

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
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:
subject: Display tag error