<%@ page import="java.util.*" %> <%@ page import="javax.naming.*" %> <%@ page import="org.apache.geronimo.demo.entity.bmp.*" %> <%@ page import="javax.rmi.PortableRemoteObject" %> <% Context ctx = new InitialContext(); String name = "java:comp/env/ejb/CustomerHome"; Object ref = ctx.lookup(name); CustomerHomeRemote home = (CustomerHomeRemote) PortableRemoteObject.narrow(ref, CustomerHomeRemote.class); CustomerRemote customerRemote = null; Collection customers = home.findAll(); %> <% for(Iterator i = customers.iterator(); i.hasNext(); ){ customerRemote=(CustomerRemote)i.next(); %> <% } %>
Customers
NAME SSS NO. ADDRESS BIRTHDATE ANNUAL SALARY LOAN AMOUNT
<%=customerRemote.getName()%> <%=customerRemote.getSssNo()%> <%=customerRemote.getAddress()%> <%=customerRemote.getBirthdate()%> <%=customerRemote.getAnnualSalary()%> <%=customerRemote.getLoanAmount()%>
Add Customer