File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes problem with display tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with display tag" Watch "problem with display tag" New topic

problem with display tag

Rajaprabhu Aravindasamy

Joined: Dec 26, 2011
Posts: 25
Hello guys..!
My JSP page is displaying the records in correct manner( using display:table tag).But whenever I'm clicking the the link named 'Next',it is saying that <No records to display>.
please anybody help me in this..! What should i do in order to make it work properly..!

My code is..,

<display:table name="details1" pagesize="1">
<display:column property="user_code" title="ID" />
<display:column property="user_name title="USER NAME"" />

where details1 is the list of objects(beans).
Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 118

Modify isplay table tag like this

<display:table name="details1" pagesize="1" requestURI="/your action name from where you are getting details1">

for eg: <display:table name="details1" pagesize="1" requestURI="/">

This will solve your problem.
Rajaprabhu Aravindasamy

Joined: Dec 26, 2011
Posts: 25
Thank you Raaja Gotluru...,...!

Your post helped me to fix my problem..
Thanks once again..!
I agree. Here's the link:
subject: problem with display tag
It's not a secret anymore!