Here is the JSP page:
Here is the method in Servlet:
I want to make a search for
Staff ID, Staff Name OR Staff Salary.
Once input either of these 3 fields, it will show display the result on the same jsp page.
But, how should I write the servlet:
while(pstmt.next())
out.println(pstmt.getInt(staff.getStaffID())+ ", " + pstmt.getString(staff.getStaffName()) + ", " + pstmt.getDouble(staff.getSalary()));
and those code in the JSP page?
Thanks for any help.
Andrew