- 博客(6)
- 收藏
- 关注
js中使用struts标签获得Action中的属性值出现乱码
js中使用struts标签获得Action中的属性值出现乱码 我的Action中有一个属性值:username,值为中文在jsp页面直接写 <input id="username" type="text" name="username" value='<s:property value="username"/>'/> 可以正确的获得
2014-10-29 16:27:08
195
Cookie中存中文报错
Cookie中存中文报错:Control character in cookie value, consider BASE64 encoding your value 功能需求:当用户登录时,将用户的用户名、密码保存到本地的Cookie中,下次登录时,直接获取之前的cookie,从而不需要输入。之前测试一直没问题,今天当创建一个中文用户,登录时报错,报错代码(String use...
2014-10-29 16:20:51
311
原创 S2SH项目搭建
struts2、spring、hibernate集成搭建WEB项目开发工具:myeclipse8.6.0、jdk6.0、apache-tomcat-6.0.18操作系统:win7 32 位框架:struts2.2.1、spring2.5.5、hibernate3 MyEclipse配置 使用myeclipse进行搭建首先安装好jdk6.0或以上版本,有一个tom...
2014-10-28 15:00:29
130
原创 struts2 i18n学习记录
Strurs2 国际化I18N一:基础配置1. 要使用Struts2来实现国际化的支持,同样先来准备国际化信息资源文件message.propertiesmessage_zh_CN.propertiesmessage_en_US.properties2.设置Struts2引用国际化信息资源文件,(方法1):在struts.xml中设置一个常量:<const...
2014-10-20 22:54:08
167
原创 Proxool数据库连接池整合问题
Proxool数据库连接池整合问题近期在整合struts2、spring、hibernate,使用proxool配置数据库连接池总是报错,查找了下原因如下:当Struts与Spring整合时,spring必须以listener加载,而proxool是使用Servlet加载的。这样就导致spring早于proxool加载,spring在创建datasource时proxool连接池还...
2014-10-18 23:23:05
238
原创 web.xml加载顺序.docx
web.xml中加载顺序为:Context-param > Listener > Filter > Servlet下边为所做的测试 一:首先读取的肯定是配置的context-param参数,将其转换为键值,并交给ServletContext如下配置,可以供spring 的Listener启动时使用<context-param><p...
2014-10-18 13:56:37
152
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅