<%@ page import="beans.EmployeeEJBWrapper" %> The CallEJB JSP
<% String empNum = request.getParameter("empNum"); String surl = request.getParameter("surl"); String inJServer = System.getProperty("oracle.jserver.version"); // save the parameters in the bean instance if (surl != null) { employeeBean.setServiceURL(surl); } if (empNum != null) { employeeBean.setEmpNumber(empNum); %>

        Employee    Salary 
        <%= employeeBean.doCallEJB(Integer.parseInt(empNum), inJServer) %>
      


<% } // show the defaults or the values last entered String val1 = ((empNum == null) ? "7654" : employeeBean.getEmpNumber()); String val2 = ((surl == null) ? "sess_iiop://localhost:2481:ORCL" : employeeBean.getServiceURL()); %>

Enter the following data:

Employee Number: > <% if (inJServer == null) { // not running in JServer, need a service URL %>

EJB Service URL: > <% } %>