You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by john lee <sh...@yahoo.com> on 2007/04/10 23:20:47 UTC
Search Engine with multiple Pages return
I implemented the Search Engine.
The SearchResult has multiple Pages, How I postback Action Class itself with parameter(PageNumber and same SearchPart) ?
layout
PartSearchMain.jsp, it include two jsps.( no frame)
left column is PartSearchInput.jsp with an text box for input SearchPart
right column is PartSearchResult.jsp, display the search result if object
PartSearchResultForm(List) exist .
flow/logic :
PartSearchInput.jsp take input of SearchPart, then call PartSearchAction, find the part,
and assign resutls to PartSearchResultForm(List), then forward control to
PartSearchMain.jsp again.
it works great, but when search results has multiple pages, problem pops.
My situration and my expection is that search result displays as " 1 2 3 4 5 6 NextPage', when user click any page number, it will redirect to same action(PartSearchAction) again with page number and SearchPart.
Any one has great ideas about above, i spend many hours on this, but no clue.
tks in advance.
john
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.