JSP的内置对象
一、实验目的
通过编程和上机实验理解 JSP各个页面之间的响应和传递的过程。并且能够熟练的掌握JSP的内置对象的属性和方法,并能灵活运用。
二、实验要求
1.基础练习:内置对象常用方法的使用。
2.编写获取表单数据。
3.按照下列要求实现简单注册、登录程序。
登陆页面:
css部分:
<style>
.m{
text-align: center;
margin-top: 5px;
}
.label{
display: inline-block;
width: 80px;
text-align-last: justify;
}
.i{
width:150px;
}
h1{
text-align: center;}
</style>
body部分:
<h1>我的账户</h1>
<Form action="1.jsp">
<div class="m"><div class="label">用户名:</div><input class="i" type="text" name="Name"></div>
<div class="m"><div class="label">密 码:</div><input class="i"type="password" name="Password"></div>
<div class="m"><input type