<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:useBean id="testSet" class="com.bean.TestSet" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head> <title>set Demo</title> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
--> </head> <body>

<c:set target="${testSet}" property="name">xxx</c:set>
<c:out value="${testSet.name}" /><br>
觊觎...如果想飞的高,就该把地平线忘掉...<br>
<c:set var="testSet.name" value="name"/>
${testSet.name }
</body>
</html>当然javabean中有name属性哈,现在问题是,我如何得到testSet.name变量的值,而不是得到testSet的name属性值!