Hello, I am trying to find a way to call a servlet from 2 diffrent searches in my site using only 1 form.Is that possible?? In specific i have a bookstore and i also have 2 kind of searches,one advanced with title and author,and one by category.How can i call a servlet(search) with using only one form..is that possible... thnx in advance...
so you have two different html input forms , one with title and author, and the second with category and you want them to be able to use the same servlet to do searching.
A hidden input field inside the forms could be used to tell the search Servlet which input form was used to invoke the servlet, and then the servlet would inspect the request parameters for the this hidden property to know what input fields to expect and how to run the search.
Error: Keyboard not attached. Press F1 to continue.