开发者

Hitting a different Struts action with DisplayTag Pagination

I'm trying to implement displaytag pagination with a little different funcitonality. Basically, I have 3 displaytag tables on my jsp, and when the user wishes to see the next set of results on one of them it brings them to a new resultant jsp which only displays the info from the table they wished to paginate.

This should be relatively simple to do. However when the user clicks a pagination link, displayTag hits the ORIGINAL struts action that it used in displaying the original data. I want to be able to hit a new struts action.

I don't think I've explained that terribly well so heres a little example.

  1. User does a search.
  2. A struts action called 'searchAllTypes' is hit and returns a jsp.
  3. Results for 3 different types (x,y and z) are displayed in 3 seperate tables.
  4. User wishes to see the next 10 results for table y so clicks 'next' on y's table.
  5. A struts action called 'searchYType' is hit and returns a new jsp.

Thanks to anyone who开发者_如何学运维 can help me with this.

-gearoid.

EDIT: I really want to hit a different method inside my Struts Action - should have clarified that earlier.


Will setting the requestURI attribute for each table tag help?

http://displaytag.sourceforge.net/10/tagreference-displaytag-12.html#table

http://displaytag.sourceforge.net/1.2/faq.html#action

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜