• Post Reply Bookmark Topic Watch Topic
  • New Topic

Add Search Functionality in the Form

 
Mastan Rao
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can any one please help me for this.I am using only JSP and Servlets.

My problem is I have a form with 3 buttons.(Button or Submit Buttons)
1)Add 2)Search 3)Reset

I have no problem with the Add and Reset Buttons functionality ,but I have a problem with Search in the Same Form.

I need a search button for searching for Particular record which already added to the data base.

Can any of you tell me how to proceed for that.

Thanks in Advance,
Mastan.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65679
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the buttons work in a similar fashion no matter what you'll be doing on the server with the result of clicking them, I'll assume your question is about how to perform database searches.

And since that's not a JSP issue, I've moved this post to a more appropriate forum.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36032
432
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mastan Rao:
I need a search button for searching for Particular record which already added to the data base.

The first step is to write a select query that searches the table for that record. If it has a primary key, you could use that to search. Otherwise, you can search with the values in the row.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!