Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Search Page

In many cases, displaying all records is not preferable. More often than not, you need only to display data selectively. For example, someone might try to find the details of a person called Jones without knowing the person’s first name. Displaying all the users does not help much, especially if you have a large number of records in the table. The page is more useful if you can let the user specify a keyword and display all records that match the keyword.

In this example, you will write a SearchServlet that lets the user enter a keyword that could be the first name, the last name, or even part of the first name or last name. The appearance of this servlet output is shown in Figure 4.6.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint