wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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 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"/>


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.
Consider Paul's rocket mass heater.
subject: Display tag error
Similar Threads
display tag export problem
DisplayTag Probelm.
Anyone done a good 'paged' datatable solution for Struts?
Conditional display of DisplayTable of DisplayTag
on dispaly tag