<%@ page language= "java" pageencoding= "UTF-8"%>
<%@ page import= "java.util.date,java.text.*"%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<%request.setcharacterencoding ("UTF-8"); %>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title> table cell Element </title>
<body>
<form action= "" method= "Post" enctype= "Multipart/form-data" Name= "Form1" >
<table width= "409" border= "1" >
<tr>
<td> username:</td> <td><input type= "text" name= "Usrname" ></td>
</tr>
<tr>
<td> password:</td> <td><input type= "password" name= "password" ></td>
</tr>
<tr>
<td> Confirm:</td> <td><input type= "password" name= "password" ></td>
</tr>
<tr><td> Gender:</td>
<td><input name= "Sex" type= "Radio" value= "Male" checked= "checked" > Male
<input name= "Sex" type= "Radio" value= "female" checked= "checked" > Women </td></tr>
<tr><td> Birth:</td>
<td><input type= "Text" Name= "Born" ></td>
</tr>
<tr>
<td> Education:</td>
<td><select name= "Schoolage" >
<option value= "Junior College" > Junior College </option>
<option value= "Undergraduate" > Undergraduate </option>
<option value= "Postgraduate" > Postgraduate </option>
<option value= "doctoral student" > Doctoral student </option>
</select></td></tr>
<tr>
<td> address:</td> <td><input type= "text" name= "Address" ></td>
</tr>
<tr>
<td> zip:</td> <td><input type= "text" name= "POST" ></td>
</tr>
<tr>
<td> Hobby:</td>
<td><input name= "like" type= "checkbox" value= "Swim" > Swim
<input name= "like" type= "checkbox" Value= "Listen to the song" > Listen to the song
<input name= "like" type= "checkbox" value= "Running" > Running
<input name= "like" type= "checkbox" value= "Badminton" > Badminton
</td>
</tr>
<tr>
<td> Photo:</td>
<td><input type= "file" name= "Photo" ></td>
</tr>
<tr>
<td> Introduction:</td>
<td><textarea name= "Introduce" rows= "5" id= "introduce" ></textarea></td>
</tr>
<tr>
<td><input type= "Submit" name= "submit" value= "Registration" >
<input type= "reset" name= "Submit2" value= "reset" ></td>
</tr>
</table>
</form>
</body>
jsp-Form Element Example