my dog learned polymorphism
The moose likes Struts and the fly likes struts2 and displaytag confiuration problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 and displaytag confiuration problem" Watch "struts2 and displaytag confiuration problem" New topic

struts2 and displaytag confiuration problem

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755

I've been trying unsuccessfully to get around this for the past 2 days and still nothing!

simply, I'm trying to incorporate strtsu2 with displayTag (works great with my struts1 application)

1. web.xml:

2 jars reference: (A) displaytag-1.1.1.jar (B) displayTag-export-poi-1.1.1.jar

3. WebContent/WEB-INF/displaytag-11.tld

4. action: (size of list is 5)

5. jsp:

result: NOTHING!!!

not even a message: nothing found to display.

any idea?!?!?
selvaraju sellamuthu
Ranch Hand

Joined: Jun 28, 2007
Posts: 53
You are trying to do using Struts2.x or Struts1.x.In Struts2.x, no more tlds ,Just you need to add required jar files in your class path.

In your jsp, just add this line on top

get your values as List from your Action,then design your table in Jsp like below.

And add displaytag-1.1.jar file in your applications's WEB-INF/lib
Vikrant Korde

Joined: Jun 16, 2008
Posts: 9
what exactly the value of excludeParams attribute do we need to give?
Does this solvs the problem. I tried all the things except the exclude params.

In the original problem if i remove the attribute "name" then it atleast shows the "Nothing to display" message.
however if the "name " attribute is present the it gives an error on the console "......No class definition found: ... NestedNullException"
Couldn't find the reason for this.

Please help
I agree. Here's the link:
subject: struts2 and displaytag confiuration problem
It's not a secret anymore!