Greetings!
I have created a finder method in a CMP managed bean. It searches by many
fields, not quite all, but any one I would want to search by.
What I was hoping to accomplish from this was being able to specify
diffrent fields to search by. Here's what I mean... This is my search.jsp page:
<form>
name: <input type="text" name="name" value="%">
city: <input type="text" name="city" value="%">
state: <input type="text" name="state" value="%">
<input type="submit">
</form>
My search-results.jsp:
myEjbHome.findAll(request.getParameter("name"),.....request.getParameter("state"));
what this does is returns all records no matter what I enter into my form.
I guess I am seeking a little guidance. If this is the best way to do what
I am wishing, what could I check to see why it's failing? Or is there a
better way of doing this?
Thanks!
Jeremy - [EMAIL PROTECTED]