Basically that's the question and here are two examples of code to compare the difference between DAO calls from JSP (1) and the (2) that is extended way and redundant. When I question about what's better I'm talking about the quality of software development.
(1) Is this right way to go?:
JSP:
DaoObject t = new DaoObject();
t.listObjects();
(2) Or is best this?:
JSP:
Object t = new Object();
t.listObjects();
Model:
class Object { ...
public ArrayList<Object> listObjects()
{
DaoObject t = new DAOObject();
return t.listObjects();
} ... }