打印本文 打印本文 关闭窗口 关闭窗口
Jsp+JavaBean循序渐进教程(五)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数667  更新时间:2009/4/23 10:54:46  文章录入:mintao  责任编辑:mintao
  newuser.jsp文件

  说明:用户注册页面,有用户名、密码、主页、Email、个人签名等信息,主要用于提供用户输入注册信息,提交Action后的处理页面为donewuse.jsp文件,所有参数将会传递到donewuser.jsp文件进行处理。文件开头$#@60;%@ page contentType="text/html;charset=gb2312"%$#@62;语句表明这个页面使用gb2312中文字符集,如果不声明的的话在中文显示上就出现乱码。$#@60;% response.setHeader("Expires","0"); %$#@62;语句是为了让页面能够自动刷新,这句话不要也没有太大影响。后面的基本上就是html语句了,大家都比较熟悉,所以在这里没有必要浪费篇幅了。

$#@60;%@ page contentType="text/html;charset=gb2312"%$#@62;
$#@60;% response.setHeader("Expires","0"); %$#@62;
$#@60;html$#@62;

$#@60;head$#@62;
$#@60;meta http-equiv="Content-Type" content="text/html; charset=gb2312"$#@62;
$#@60;meta name="GENERATOR" content="Microsoft FrontPage 4.0"$#@62;
$#@60;meta name="ProgId" content="FrontPage.Editor.Document"$#@62;
$#@60;title$#@62;新用户注册$#@60;/title$#@62;
$#@60;/head$#@62;
$#@60;body bgcolor="#FFFAD9"$#@62;
$#@60;p align="center"$#@62;$#@60;font color="#8484FF"$#@62;$#@60;span class="main1"$#@62;$#@60;strong$#@62;$#@60;big$#@62;新个人用户注册$#@60;/big$#@62;$#@60;/strong$#@62;$#@60;/span$#@62;$#@60;/font$#@62;$#@60;/p$#@62;
$#@60;span class="main1"$#@62;
$#@60;form method="POST" name="formreg" action="donewuser.jsp"$#@62;
$#@60;div align="center"$#@62;$#@60;center$#@62;$#@60;table
border="1" width="50%" borderColorDark="#FFFFFF" borderColorLight="#000000"
cellspacing="0"$#@62;
$#@60;tr$#@62;
$#@60;td width="27%" bgcolor="#DDDDFF" align="center"$#@62;$#@60;span class="main1"$#@62;用户名:$#@60;/td$#@62;
$#@60;td width="73%" bgcolor="#DDDDFF"$#@62;$#@60;span class="main1"$#@62;$#@60;input type="text" name="username" size="20"
tabindex="2"$#@62;$#@60;font color="#FF0000"$#@62;$#@60;b$#@62;*$#@60;/b$#@62;$#@60;/font$#@62;$#@60;/span$#@62;$#@60;/td$#@62;
$#@60;/tr$#@62;

打印本文 打印本文 关闭窗口 关闭窗口