JSP - request - 1
<%@ page language="java" contentType="text/html;charset=utf8" %>
<%@ page import="java.util.*"%> <html>
<title>
index page
</title>
<head>
<h1>
<center>
JAVA SCRIPT
</center>
</h1>
</head>
<body>
<%
request.setCharacterEncoding("utf8");
%>
<center>
<table>
<form action="show.jsp" method="post">
<tr>
<td>
name:
</td>
<td>
<input type="text" name="name" label="name"/>
</td>
</tr>
<tr>
<td>
gender:
</td>
<td>
<input type="text" name="gender" label="gender"/>
</td>
</tr> <tr>
<td>
password:
</td>
<td>
<input type="password" name="passwd">
</td>
</tr> <tr>
<td>
<input type="submit"/>
</td>
<td>
<input type="reset"/>
</td>
</tr>
</form>
</table>
</center> </body>
</html>
<%@ page language="java" contentType="text/html;charset=utf8" %>
<%@ page import="java.util.*"%>
<html>
<head> </head> <body>
<%
request.setCharacterEncoding("utf8");
String username=request.getParameter("name");
String gender=request.getParameter("gender");
String password=request.getParameter("passwd");
%> <%=username %> </br>
<%=gender %> </br>
<%=password %> </br> </body> </html>
JSP - request - 1的更多相关文章
- jsp Request获取url信息的各种方法比较
从Request对象中可以获取各种路径信息,以下例子: 假设请求的页面是index.jsp,项目是WebDemo,则在index.jsp中获取有关request对象的各种路径信息如下 String p ...
- jsp request 获取路径
这篇教程不错:http://zjutsoft.iteye.com/blog/1084260 自己试验如下: System.out.println("-----------------serv ...
- jsp request 对象详解
转自:http://www.cnblogs.com/qqnnhhbb/archive/2007/10/16/926234.html 1.request对象 客户端的请求信息被封装在request对象中 ...
- JSP Request方法大全
协议:request.getProtocol() 输出:HTTP/1.1 服务器信息 getServletConfig().getServletContext().getServerInfo() 输出 ...
- jsp request.getParameterValues获取数组值代码示例
tt.jsp <form action="tt2.jsp" method="POST"> <select name="two&quo ...
- Jsp request
<%@ page language="java" import="java.util.*" pageEncoding="GB18030" ...
- jsp request对象
getParameter( ) :返回name指定参数的参数值 String[] getParameterValues(String name) :返回包含参数name的所有值的数值 getA ...
- Jsp重定向(response.sendRedirect())和转发(request.getRequestDispatcher().forward(request,r)的差别
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"% ...
- JSP 中的 Request 和 Response 对象
客户端的请求信息被封装在request对象中,通过它才能了解到客户的需求,然后做出响应.它是HttpServletRequest类的实例:response对象包含了响应客户请求的有关信息,但在JSP中 ...
随机推荐
- good page
http://www.cnblogs.com/zrtqsk/category/540486.html
- systemtap [主设备号,次设备好,inode]监控文件
SystemTap 是监控和跟踪运行中的linux 内核的操作的动态方法,SystemTap 应用:对管理员,SystemTap可用于监控系统性能,找出系统瓶颈,而对于开发者,可以查看他们的程序运行时 ...
- 1/8=1/a+1/b,a,b为自然数
#include "stdio.h" int main(){ int a; int b; for(a=1;a<1000;a++) { for(b=1;b<1000; ...
- YouTube CEO关于工作和生活平衡的完美回答
原文地址:http://www.businessinsider.com/youtubes-ceo-response-to-work-life-balance-2015-7 译文: 在2015年Aspe ...
- c#参数传递使用中的一个坑,值传递与引用传递
c#参数传递使用中发现的一个问题 写了3个重载方法,把 对象.int .(int直接封入object) 传入SWAP方法进行数据操作结果对象内的数据发生了改变,其他2个没有:
- abc - zx
诛仙青云志 第26集 第25集 第24集 第23集 第22集 第21集 第20集 第19集 第18集 第17集 第16集 第15集 第14集 ...
- 怎样写好一份IT技术岗位的简历
10月是校园招聘的旺季,很多应届毕业生都忙碌起来了,从CSDN笔试-面试文章的火热程度,从我收到的简历就看得出来. 我很久没有参与笔试和面试了,所以只能从“简历”来阐述下我的看法. 截至目前,已经帮8 ...
- tcpdump 命令行抓包工具
为了防止无良网站的爬虫抓取文章,特此标识,转载请注明文章出处.LaplaceDemon/SJQ. http://www.cnblogs.com/shijiaqi1066/p/3898248.html ...
- python - 操作RabbitMQ
python - 操作RabbitMQ 介绍 RabbitMQ是一个在AMQP基础上完整的,可复用的企业消息系统.他遵循Mozilla Public License开源协议.MQ全称为Mess ...
- 了解php面向对象
php 三大特性:封装.继承.多态,一直以来只知道其字,却不大了解其意思和具体使用,只是对继承有大概的了 解,优点是代码的重用性,oop概念,记得有一次我去面试,人家问我什么是oop,然后我答了很多什 ...