一.HTTP请求处理1.获取GET请求数据ASP.NET:Request.QueryString[name]JSP:request.getParameter(String
name);2.解决字符串乱码问题:NameValueCollection coding;coding = HttpUtilit...
分类:
Web程序 时间:
2014-05-20 02:37:14
阅读次数:
317
线程安全问题的由来
在传统的Web开发中,我们处理Http请求最常用的方式是通过实现Servlet对象来进行Http请求的响应.Servlet是J2EE的重要标准之一,规定了Java如何响应Http请求的规范.通过HttpServletRequest和HttpServletResponse对象,我....
分类:
其他好文 时间:
2014-05-20 01:41:27
阅读次数:
425
Overview of How Filters WorkThis section
provides an overview of the following topics:How the Servlet Container Invokes
FiltersTypical Filter ActionsH...
分类:
其他好文 时间:
2014-05-19 23:10:22
阅读次数:
418
If we define Servlet filters in web.xml, then
the order of execution of the filters will be the same as the order in which
they are defined in the web...
分类:
其他好文 时间:
2014-05-19 23:07:40
阅读次数:
352
JSTL标签库的使用是为类弥补html表的不足,规范自定义标签的使用而诞生的。在告别modle1模式开发应用程序后,人们开始注重软件的分层设计,不希望在jsp页面中出现java逻辑代码,同时也由于自定义标签的开发难度较大和不利于技术标准化产生了自定义标签库。JSTL标签库可分为5类:q核心标签库qI...
分类:
Web程序 时间:
2014-05-19 21:57:44
阅读次数:
547
jsp页面中
通知浏览器以utf-8解码get请求编码方式和post请求提交编码方式不同,get是把数据直接放到url中,例如以上的uname,IE浏览器先对中文进行utf-8编码(一个中文3个字符表示
太长),继而为了缩短字符又用ISO8859-1编码后传递给服务器。服务器的doGet方法中要先....
分类:
其他好文 时间:
2014-05-19 21:21:52
阅读次数:
357
el表达式可以直接访问action中的属性值,而不是成员变量。下面代码中在jsp中应该这样写:${name},而不是${age}e.g:action{
private int age;//成员变量 public String getName(){ //Name为属性 return age;...
分类:
其他好文 时间:
2014-05-19 20:36:26
阅读次数:
599
myeclispe 中 html乱码在页面的开头写上即可
若不行,把中的charset改为gb2312就可以了myeclispe 中 jsp乱码 这样更简单。
分类:
Web程序 时间:
2014-05-19 20:35:50
阅读次数:
390
首先感谢熔岩的文章:http://lavasoft.blog.51cto.com/62575/2279881.Eclipse安装上tomcat插件,http://www.eclipsetotale.com/tomcatPlugin.html下载后解压者eclipse的plugin目录2.建立一个We...
分类:
Web程序 时间:
2014-05-19 11:30:41
阅读次数:
348
相关学习资料http://my.oschina.net/chape/blog/170247http://docs.oracle.com/cd/E13222_01/wls/docs81/webapp/web_xml.htmlhttp://blog.csdn.net/liaoxiaohua1981/ar...
分类:
Web程序 时间:
2014-05-17 14:21:45
阅读次数:
551