- 浏览: 24597 次
- 性别:
- 来自: 北京
-
最新评论
文章列表
转自 百度空间A Man 的日志
Servlet 编码问题Servlet 2010-07-31 16:06:43 阅读45 评论0 字号:大中小 订阅
一、静态中文展示
servlet做页面
response.setContentType("text/html;charset=utf-8/gbk/gb2312");
二、动态传递中文参数:可以将中文参数进行单的类型转换(注意:字符编码与参数的元字符编码和参数的目标字符编码要一致)
*get传参:直接修改tomcat服务器中连接期的默认字符编码为utf-8/gbk/gb2312(在servlet.xml文件,连 ...
在 tomcat中 的 server.xml 中进行如下配置
重点是 Context 标签的引用 里面的 SecondWeb 则为第二个项目 需要之前部署
然后在访问页面的时候 则写为 http://localhost:8080/other/ 其地址则写为那个配置的 /other 进行访问
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xml ...
java中的过滤器
在web项目中的 web.xml 中这样配置
处理的类则为 com.gx.FilterTest
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSc ...
js 文件
/*!
* Ext JS Library 3.0.0
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
Ext.onReady(function(){
var tree = new Ext.tree.TreePanel({
renderTo:'tree-div',
title: 'My Task List',
height: 450,
width: 600,
...
/*!
* Ext JS Library 3.0.0
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
Ext.onReady(function(){
var tree = new Ext.tree.TreePanel({
renderTo:'tree-div',
title: 'My Task List',
height: 450,
width: 600,
us ...
/*!
* Ext JS Library 3.0.0
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
Ext.onReady(function(){
var tree = new Ext.tree.TreePanel({
renderTo:'tree-div',
title: 'My Task List',
height: 450,
width: 600,
us ...
http://www1.nm.zsks.cn/zkweb/login.html 227601
http://www.blogjava.net/fuhoujun/archive/2008/10/10/233673.html
http://www.blogjava.net/fuhoujun/archive/2008/10/04/232378.html
树的博客
又看到一个好的链接地址 感谢那位兄弟无私奉献的精神 有时间会过来看一看http://www.dreamdu.com/javascript/
最近看到一个兄弟的 博客 写的很好 等着没事儿的时候过来看一下
http://www.juyimeng.com/tag/javascript
是讲 JavaScript 中循环的
最近在研究树 但是遇到了问题 continue在这里面报错 说must be inside loop
没搞明白 试试将continue放在for循环里试试吧
/*!
* Ext JS Library 3.0.0
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
Ex ...