【JSP开源代码栏目提醒】:网学会员鉴于大家对JSP开源代码十分关注,论文会员在此为大家搜集整理了“3-16.jsp”一文,供大家参考学习
<%@ page language="java" contentType="text/html; charset=gb2312"%>
<html>
<head><title> JavaBean动作应用示例</title> </head>
<body>
<h1>JavaBean动作</h1>
<jsp:useBean id="JspBean1Id" scope="session" class="JSP.JspBean1" />
<h3>属性sample的原有值:
<jsp:getProperty name="JspBean1Id" property="sample" /> </h3>
<jsp:setProperty name="JspBean1Id" property="*" />
<form method="post">
输入新的值:<input name="sample">
<p>
<input type="submit" name="Submit" value="Submit">
<input type="reset" value="Reset">
<h3>属性sample的当前值:
<jsp:getProperty name="JspBean1Id" property="sample" /> </h3>
</form>
</body>
</html>
上一篇:
3-15.jsp
下一篇:
爱情只不过就是,爱与不爱