Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Add Search Functionality in the Form

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic