这是我的第一个HTML +Request的例子,
路径:F:\Tomcat 5.0\webapps\ROOT\myhtml
mytext.html
Request.jsp
1.mytext.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>我的第一个text 网页</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<input name ="mytext" type="text" value="text" >
<input name ="mypassword" type="password" value="password" >
<input name ="myradio" type="radio" value="male" checked >
<input name ="mycheckbox" type="checkbox" value="male" checked >
<input name ="myhidden" type="hidden" >
<input name ="mysubmit" type="submit" value="确定" >
<input name ="myreset" type="reset" value="清空">
<textarea name ="mytextarea" rows=3 cols=20 ></textarea>
<select name ="myselect" size="1" >
<option value="初中" selected>初中</option>
<option value="高中">高中</option>
</select>
</BODY>
</HTML>
2.Request.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>我的第一个text 网页</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<%--测试jsp:include page ;"/form.html" 来源于F:\Tomcat 5.0\webapps\ROOT 目录下的form.html--%>
<jsp:include page = "/form.html" />
JSP Request Method:<% out.print(request.getMethod()) ; %>
<br>
JSP Request
本文地址:http://com.8s8s.com/it/it11453.htm