没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
<%@page import="com.atguigu.javaweb.Customer"%>
<%@ page language="java" contentType="text/html; charset=UTF-
8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="customer"
class="com.atguigu.javaweb.Customer"
scope="request"></jsp:useBean>
<jsp:useBean id="customer2"
beanName="com.atguigu.javaweb.Customer"
type="java.lang.Object" scope="request"></jsp:useBean>
<%--
Object customer2 = request.getAttribute("customer2");
if(customer2){
customer2 =
Class.forName("com.atguigu.javaweb.Customer").newInstance();
request.setAttribute("customer2", customer2);
}
--%>
<!-- 若 property 的值为 *, 省略 value 属性值, 则将自动为所有属
性赋值为对应的请求参数的值. -->
<jsp:setProperty property="*" name="customer"/>
<%--
<jsp:setProperty property="name" value="ATGUIGU2"
name="customer"/>
--%>
age: <jsp:getProperty property="age" name="customer"/>
<br>
love彤彤
- 粉丝: 33
- 资源: 311
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0