request.getRealPath("/") 在window获取的是服务器的根目录,结尾包含分隔符,如E:\apache-tomcat-6.0.29-bak\apache-tomcat-6.0.29\apache-tomcat-6.0.29\webapps\test\在Linux下获取的不含分隔...
分类:
系统相关 时间:
2014-08-21 16:57:44
阅读次数:
300
前台富文本编辑器文本乱码,图片正常显示,解决!前台:contentPxp=encodeURIComponent(contentPxp);
后台:Stringcontent=request.getParameter("contentPxp");
(getParameter的时候,servlet会自动解码一下)
分类:
其他好文 时间:
2014-08-21 15:16:40
阅读次数:
261
http模块提供了两个常用的功能, 创建一个http server和做http请求.创建一个http servervar http = require('http');var server = http.createServer();server.on('request', function(req...
分类:
Web程序 时间:
2014-08-21 14:39:34
阅读次数:
154
ExtJS以及JQuery异步请求Session过期解决方案最近在开发中遇到这样的问题,当Session过期后,通过拦截器判断过期并通过response.sendRedirect(request.getServletContext()+"/login.jsp")重定位到登录界面,但是因为大部分前后台...
分类:
Web程序 时间:
2014-08-21 12:55:14
阅读次数:
187
Within a multi-processing system including a plurality of processor cores4, 6operating in accordance with coherent multi-processing, each of the cores...
分类:
其他好文 时间:
2014-08-21 11:19:04
阅读次数:
231
jsp中pageEncoding、charset=UTF-8"在JSP/Servlet 中主要有以下几个地方可以设置编码,pageEncoding="UTF-8"、contentType="text/html;charset=UTF -8"、request.setCharacterEncoding(...
分类:
Web程序 时间:
2014-08-21 08:24:43
阅读次数:
187
soft / hard Determines the recovery behavior of the NFS client after an NFS request times out. If neither option is ...
分类:
其他好文 时间:
2014-08-21 00:05:53
阅读次数:
275
一、基本知识点其实要完成这个功能很简单:1、MainActivitystartActivityForResult(intent, 100);//第二个是请求码@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(request...
分类:
移动开发 时间:
2014-08-20 22:46:53
阅读次数:
353
Struts2 中result type属性说明首先看一下在struts-default.xml中对于result-type的定义:chain:用来处理Action链,被跳转的action中仍能获取上个页面的值,如request信息.dispatcher:用来转向页面,通常处理JSP.freemak...
分类:
其他好文 时间:
2014-08-20 19:35:32
阅读次数:
172
mootools使用Request.send()数据时刷新整个页面
分类:
其他好文 时间:
2014-08-20 16:05:22
阅读次数:
148