aspose file tools*
The moose likes JDBC and the fly likes Add  Search Functionality in the Form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Add  Search Functionality in the Form" Watch "Add  Search Functionality in the Form" New topic
Author

Add Search Functionality in the Form

Mastan Rao
Greenhorn

Joined: Nov 26, 2007
Posts: 10
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

Joined: Jan 10, 2002
Posts: 61180
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30502
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Add Search Functionality in the Form