Hello Forum,
Working on a class project... I have an include (header
jsp) and a main view with a full result set. There are five category links added in the header jsp that when selected, the resultset in the main view should filter based on what's selected. However, I do not know how to drive a different filter or resultSet based on clicking an html link.
I can create 5 seperate action
servlets for each seperate link and re-display the results, but I do not think that is the best approach.
Can someone help me with the best solution?
Here is the code:
The Include with Links:
Here is the main view with the ResultSet displayed that should filter based on the category selected
Servlet Code:
Helper Class (DAO):