Display records information with EJB 3.0 and JSP.
Ok, took over an existing project. The previous programmer who code the application uses EJB 3.0 and JSP. Looking at the codes, I find out that he is storing records information using request.setAttributes. Example
request.setAttributes("name", customer.getName());
request.setAttributes("address", customer.getAddress());
and at the JSP page.
Customer name: <%= request.getAttributes("name") %>
I find these codes messy and difficult to maintain. What should be the proper way to encapsulate data and display on a jsp page. Please advise.

