=request.getRequestDispatcher( );Рview.forward(request,response);Р}Р}Р(4)displayCustomer.jsp源程序Р<%@ page import="com.model.CustomerBean" %>Р<jsp:useBean id="customer" Рclass=" com.model.CustomerBean" Рscope= />Р<jsp:setProperty name="customer" property="*"/>Р<html><body>Р<table border="1">Р<tr>Р<td>客户名:</td>Р<td><jsp:getProperty name="customer" Рproperty="custName"/></td>Р</tr>Р<tr>Р<td>Email地址:</td>Р<td><jsp:getProperty name="customer" property="email"/></td>Р</tr>Р<tr>Р<td>电话:</td>Р<td><jsp:getProperty name="customer" property="phone"/></td>Р</tr>Р</table>Р</body></html>Р(5)web.xml源程序Р<servlet>Р <servlet-name>courseServlet</servlet-name>Р <servlet-class> </servlet-class>Р</servlet>Р<servlet-mapping>Р<servlet-name> </servlet-name>Р<url-pattern>/customer.do</url-pattern>Р</servlet-mapping>