> Hi,
> can someone give me some help, I stucked here almost 2 days...
> 8. on the bottom of results.jsp will has a hyperlink "begin a new search"
> bring user back to the
> searchForm.jsp.
> the above steps are all works fine if I do one search after another.
I am sure if here You press back button it will point You to search.jsp and
any further actions will be correct
like forward back and see details.
if it is not like this please send how it is to clarify situation.
> PROBLEMS:
> 1. if I click the browser back button to
> previous result page, it looks like the previous results still showing
> there, but since the session variable already overwriten by the lastest
> search results, so the details page will has wrong data.
You should not be able to see previous results. Try to set no-cashe
headers.
> 2. if I go back through browser to previous results page and that page has
> [previous] [next] link, if I click either [previous] or [next] link, then
> the results will mess up, it will based on the latest results count to
> recalculate the page number instead of the previous results count.
keep search expression in a hidden form feald in result.jsp and validate it
all times when next an
previous handlers are invoked. If it is changed make requery(research).
( I think this is the best solution. )
of try to identify browser windows with some prodused uniqie ID within user
session
Good luck
Valik
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets