随笔分类 -  jsp

techology of jsp
摘要:一、描述 从前台传中文参数到后台,发现中文乱码。二、解决 首先,统一所有文件为utf-8格式。 其次,在传参时,使用js的encodeURI函数,对参数进行编码。 然后一定要对该中文参数进行两次编码,即:encodeURI(encodeURI(中文)) 最后,在java后台,使用URLDe... 阅读全文
posted @ 2015-08-30 18:20 brightshi 阅读(349) 评论(0) 推荐(1)
摘要:将公共引入的文件放到common.jsp中,其他页面引入该jsp即可使用 1 2 8 9 10 11 ">12 13 My JSP 'index.jsp' starting page14 此时报:Duplicate local variable basePath 因为是讲file指定的页面代... 阅读全文
posted @ 2014-12-04 21:21 brightshi 阅读(6798) 评论(0) 推荐(0)