Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • 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
Pie
Posts: 65225
95
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
Marshal
Posts: 34973
379
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic