jsp必备

来源:岁月联盟 编辑:exp 时间:2011-08-15

<%@ page language="java" import="java.util.*" contentType="text/html" pageEncoding="UTF-8"%>
在<head></head>中加入一下代码
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
 
用户登录<br>
     <hr>
     <form action="loginClServlet" method="post">
            <table>
                <tr>
                 <td>用户名:</td>
                    <td><input type="text" name="uName"/></td>
                </tr>
                <tr>
                 <td>密&nbsp;&nbsp;&nbsp;&nbsp;码:</td>
                    <td><input type="password" name="uPass"/></td>
                </tr>
                <tr>
                 <td><input type="submit" value="登录"/></td>
                 <td><input type="reset" value="重置"/></td>
                </tr>
            </table>
     </form>
    </center>
    <hr>
本文出自 “java技术社区” 博客