会不会是页面没有设成GB2312,从页面读入的数据是不是乱码?
先将字符串转换试试:
String str_name = new String(XXXActionForm.getName().getBytes("iso-8859-1"),"GB2312");好像用过滤类也可以~