• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2 and displaytag confiuration problem

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rhhhrhrrrr

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
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Try...
 
Vikrant Korde
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic