File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Displaytag : Not getting to the same page after modifying record Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Displaytag : Not getting to the same page after modifying record" Watch "Displaytag : Not getting to the same page after modifying record" New topic
Author

Displaytag : Not getting to the same page after modifying record

Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 435
Hi all,

I have this situation. Say on page three of pagination created by displaytag. I modify a record, and i want to return to same page ie after i have finished.

I am using and setting startOffset for doing so but what it is doing is that it is displaying same number of pages ( that I am getting using some filters), and the filters are maintained after modifying but I the record is show on the first page and as I go to 3rd page, I see that record again on 3rd. When I click on the first page, I see the original and correct record there too.

So please help me out that I can return to correct page number after changing a record existng on that page.

Thanks,


Maki Jav


Help gets you when you need it!
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 435
Hi,

Now I am able to do this....

I used the following code in my Action class.... Same can be done in Servlet



And removing last & by



In Jsp I used it like this....





And in tag....





Thanks,


Maki Jav





 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Displaytag : Not getting to the same page after modifying record
 
Similar Threads
pagewise totals are displated as grand totals while sorting
Transfer objects
New row adds to output on page refresh
NX: My Locking Mechanism
lock() called twice by same client