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.

[655 byte] By [liangtehza] at [2007-11-27 11:59:55]
# 1

Use JBoss Seam => http://www.jboss.com/products/seam (JSF+EJB3)

java_2006a at 2007-7-29 19:28:24 > top of Java-index,Java Essentials,Java Programming...