In the previous section, you created a text field component on the JSP page that accepts user input. In this text field, users can specify a string with which to filter employee names. You also added a submit button.
In the following steps, you add code to the scriptlet in the employees.java
file to enable it to use the getEmployeesByName
method. This method is used only if a user submits a value for filtering the results. If this filter criterion is not specified, the getAllEmployees
method is used.