hi guys,
im developing a search engine using servlet and jsp.how can we display the search results in the same webpage below the search bar.i dont want to use ajax and all. i want it in simple way....if anybody know please help me....
thank you

Recommended Answers

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 …

Jump to Post

All 2 Replies

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

thx dude....let me check

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.