2011年4月23日
摘要: 如果显示页面的编码与数据库字符编码不一致时:方法1:url="jdbc:mysql://localhost:3306/yuan?useUnicode=true&characterEncoding=UTF-8"中的编码要与页面的编码一致.(page language="java" contentType="text/html; charset=UTF-8")方法2:使用代码修改编码:new String(username.getBytes("ISO-8859-1"),"UTF-8" 阅读全文
posted @ 2011-04-23 18:31 星^_^風 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 应用部署运行的时候出现JSP异常, 发生在使用JSTL库的时候: According to TLD or attribute directive in tag file, attribute value does not accept any expressions, 可能是因为使用了JSP2.0版本, 同时又没有使用JSTL core库的备用版本(RT库), 以下有两种处理方法:1,修改web.xml<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5&quo 阅读全文
posted @ 2011-04-23 18:03 星^_^風 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 一般标签Core <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>国际化信息标签I18N <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>数据库标签Sql <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>x 阅读全文
posted @ 2011-04-23 17:34 星^_^風 阅读(111) 评论(0) 推荐(0) 编辑