Р Р

全文预览

网络编程语言(Java)、网络编编程(Java)试卷A卷

上传者:徐小白 |  格式:doc  |  页数:9 |  大小:83KB

文档介绍
=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>

收藏

分享

举报
下载此文档