Submit to the same page with the results, instead of going to a new page.
Always display the search criteria and if there was any input in the request and there were results also display those.
Assuming that you submit to a servlet, you take the results and send them to the same page then:
<display here the search bar>
- take the results from the servlet.
- If they were found display them
- If this is the first you enter the page then there aren't any results, so don't display anything.
You need to post some code showing what technique you currently use
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448