【JSP开源代码栏目提醒】:网学会员JSP开源代码为您提供Account.jsp参考,解决您在Account.jsp学习中工作中的难题,参考学习。
<html>
<jsp:useBean id="accountBean" scope="session" class="AccountBean" />
<jsp:setProperty name="accountBean" property="*" />
<%! String status; %>
<% status = accountBean.processRequest(); %>
<html>
<head>
<title>Account JSP</title>
</head>
<body background="back.gif">
<font size = 5 color="#CC0000">
<h1><b><center>Account JSP Example</center></b></h1>
<hr>
<br>
<form method=POST action=Account.jsp>
<BR>
<br>Account ID <INPUT type=text name="id" size="8" value="<jsp:getProperty name="accountBean" property="id" />" >
Balance <INPUT type=text name="balance" size="8" value="<jsp:getProperty name="accountBean" property="balance" />" ><br>
First Name
<INPUT type=text name="firstName" size="8" value="<jsp:getProperty name="accountBean" property="firstName" />">
Last Name <INPUT type=text name="lastName" "size=8" Value="<jsp:getProperty name="accountBean" property="lastName" />" ><br>
<br>
<h2><b>Action :</b></h2>
<INPUT type="radio" name="action" value="create">Create
<INPUT type="radio" name="action" value="find">Find
<INPUT type="radio" name="action" value="debit">Debit
<INPUT type="radio" name="action" value="credit">Credit
<br>
<br>Amount <INPUT type=text name="amount"><br>
<INPUT type=submit name="submit" value="Submit">
</form>
</FONT>
</body>
</html>
<hr>
<h3><b>Status :</b></h3> <%= status %>
</html>
上一篇:
AccFindWhereUserIdEqualsResult.jsp
下一篇:
选修课论文:水利工程的环境伦理分析