Hi All,

The goal of my application is to make a retrieve data from business tables.
I use Struts 1.x for my presentation layer and Spring + Hibernate for
persistance one, with oracle data base access. So, I have 2 main screens :
the first one to specify search criterias, and the second one shows a
summary of criteria values and a table with pagination for retrieved data.
Currently, I use Struts layout taglib to manage the table pagination. It
works fine, but to replace it by displaytag taglib.

Now, it displaytag I can show only the first page, but when I click on page
2 for example, I have an error message : the searchForm attribute is not
found on the request context. But I don't have this problem with
struts-layout. The uri used by struts-layout for pagination is "sort.do?page
number" but with displaytag is the current jsp page. The sort.do action is
specific to struts-layout. The struts action I use to move from the first
sceen to the second one is searchAction.do. This action calls the business
layer to get result rows. When I add to the table tag the property
requestURI with searchAction.do, the pagination works but at each navigation
the business layer is called and a query to the data base is executed.

My question is, are there a solution with displaytag without moving
searchForm in the session context for example ?

Thanks for your Help,

wlidha
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to