一个道理
request.getParameter("asdfa");
request.getParameter("asdfa");
解决方案 »
- struts2拦截器问题
- 求Eclipse3.5的插件Myeclipse下载地址
- 谁能跟我比郁闷 大叔大婶们帮帮忙!!!
- 404错误?servlet生成不了!
- 有没有开发过视频聊天(网页中)兄弟,给点意见,
- 基于jsp+sqlserver20000(或access)+apachetomcat 的图书管理系统或成绩管理系统
- 请教一个简单的计数器问题
- struts 加感叹号请求不到方法,不加能请求到 求解啊!
- 大家来帮帮忙啊!!!!!!!!!!!急急急急急急急急(在线等待)
- 在网页中生成的报表,有2页的内容,如何打印时加入页眉页脚呢?(每页下都有日期)
- 关于RS。
- 如何把TextField的内容写入文件里?[在线等!]
------------------------------------
<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<title>
posttoself
</title>
</head>
<body bgcolor="#ffffff">
<h1>Post to self test</h1>
<form method="post" >
<br>请输入一个数字 : <input name="num"><br>
<input type="submit" name="Submit" value="提交" >
<input type="reset" value="清除">
<br>你输入的数字是<%=request.getParameter("num")%>
<%
if (request.getParameter("num")=="!=null){
if (request.getParameter("num")=="22")
{out.write("恰好是你的年龄哦:)");
}}
%>
<br>
</form>
</body>
</html>
先submit再request.getParameter