Usually when I do JSP/Servlet and use persistence through a database I have a DAO for each table more or less as well as a sort of manager that uses the DAO to access the database. The manager it...
Type: Posts; User: Json
Usually when I do JSP/Servlet and use persistence through a database I have a DAO for each table more or less as well as a sort of manager that uses the DAO to access the database. The manager it...
You could do it that way, but I'm not sure I understand method2, it only takes the search type, so what are you searching for then or are you just listing all of that type?
// Json