Jsp+javabean step-by-Step Tutorial (v)

Source: Internet
Author: User
Tags character set microsoft frontpage
js| Tutorial newuser.jsp files
Description: The user registers the page, has the user name, the password, the homepage, the Email, the personal signature and so on information, mainly uses in provides the user to enter the registration information, submits the action after the processing page is the donewuse.jsp file, all parameters will pass to the donewuser.jsp file to handle. The beginning of the file <%@ page contenttype= "text/html;charset=gb2312"%> statement that this page uses the gb2312 Chinese character set, if not stated in the Chinese display will appear garbled. <% Response.setheader ("Expires", "0"); %> statement is to allow the page to automatically refresh, this sentence does not have much impact. The following is basically the HTML statement, we are more familiar with, so there is no need to waste space.
<%@ page contenttype= "text/html;charset=gb2312"%>
<% Response.setheader ("Expires", "0"); %>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<meta name= "generator" content= "Microsoft FrontPage 4.0" >
<meta name= "ProgId" content= "FrontPage.Editor.Document" >
<title> New User Registration </title>
<body bgcolor= "#FFFAD9" >
<p align= "center" ><font color= "#8484FF" ><span class= "main1" ><strong><big> new Personal User Registration </big></strong></span></font></p>
<span class= "Main1" >
<form method= "POST" name= "Formreg" action= "donewuser.jsp" >
<div align= "center" ><center><table
Border= "1" width= "50%" bordercolordark= "#FFFFFF" bordercolorlight= "#000000"
cellspacing= "0" >
<tr>
&LT;TD width= "27%" bgcolor= "#DDDDFF" align= "center" ><span class= "main1" > Username:</td>
&LT;TD width= "73%" bgcolor= "#DDDDFF" ><span class= "main1" ><input type= "text" name= "username" size= "20"
tabindex= "2" ><font color= "#FF0000" ><b>*</b></font></span></td>
</tr>
<tr>
&LT;TD width= "27%" bgcolor= "#DDDDFF" align= "center" ><span class= "main1" > Enter password:</span></td>
&LT;TD width= "73%" bgcolor= "#DDDDFF" ><input type= "password" name= "password" size= "20"
tabindex= "2" ><font color= "#FF0000" ><b>*</b></font></td>
</tr>

<tr>
<TD width= "27%" bgcolor= "#DDDDFF" align= "center" ><span class= "main1" > Verify password:</span></td>
<TD width= "73%" bgcolor= "#DDDDFF" ><input type= "password" name= "Password1" size= "20"
tabindex= "3" ><font color= "#FF0000" ><b>*</b></font></td>
</tr>

<tr>
<TD width= "27%" bgcolor= "#DDDDFF" align= "center" ><span class= "Main1" >E-mail</td>
<TD width= "73%" bgcolor= "#DDDDFF" ><input type= "text" name= "email" size= "" tabindex= "4" ><font
Color= "#FF0000" ><b>*</b></font></td>
</tr>

<tr>
&LT;TD width= "27%" bgcolor= "#DDDDFF" align= "Center" ><span class
= "Main1" > Home address:</span></td>
&LT;TD width= "73%" bgcolor= "#DDDDFF" ><input type= "text" name= "homepage" size= "20"
tabindex= "6" value= "http://" ></td>
</tr>
<tr>
&LT;TD width= "100%" bgcolor= "#DDDDFF" colspan= "2" >
<BR>
<center><span class= "main1" ><font color= "Red" ><B> introduced himself: </b></font><span class= "Main" > (Introduce yourself, not more than 120 words) </center></span></span></td>
</tr>
<tr>
&LT;TD width= "100%" bgcolor= "#DDDDFF" colspan= "2" > <textarea rows= "6"
Name= "Signs" cols= "tabindex=" "9" ></textarea></td>
</tr>
<tr>
&LT;TD width= "30%" bgcolor= "#DDDDFF" colspan= "2" ><div align= "center" ><center><p><input
Type= "Submit" value= "Submit" Name= "B1" tabindex= "ten" > <input type= "Reset"
Value= "Clear" name= "B2" tabindex= "one" ></td>
</tr>
</table>
</center></div>
</form>
&LT;HR size= "1" color= "#FF0000" >
<span class= "Main" >
<p align= "center" >better view:800*600 Best view:1024x768
For this system to better serve you, please use IE4.0 or above version of the browser <br>
<font color= "#000000" ><a href= "Javascript:%20newguide (" copyright.htm ")" target= "_self" > Copyright </a> </font>
</span></span>
<span class= "Main" >
<a href= "http://jspbbs.yeah.net" target= "_blank" >jsp enthusiasts </a><span class= "Main1" >
</span></span><span class= "Main1" > (<a href= "mailto:coolknight@263.net" > 刘玉锋 </a>) <span class= "main" > Making Copyright? <font face= "Arial" >2000 </font></p>
</body>
The registration page is done, and see how the data on this page is processed later.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.