用ssh完成搜索功能,英文能正常显示,中文不行,但却不是中文乱码问题

在搜索英文时

图片说明

数据库查询正常,页面也正常显示

图片说明

但在查询中文时,就无法查询,但不是中文乱码问题,注意不是中文乱码问题,因为打印出来是正常的

图片说明

这里附上几个impl里的搜索方法:
HibernateDaoImpl:

图片说明

NewsDaoImpl:

图片说明

NewsServiceImpl:

图片说明

Action中的搜索方法:

图片说明

这里是页面的代码:


新建


    <tr class="alt">
                <th><input type="checkbox" id="checkAll" name="test" value="${id}"/></th>
                <th>No.</th>
                <th>标题</th>
                <th>类别</th>
                <th>发布媒介</th>
                <th>申请人</th>
                <th>申请时间</th>
                <th>状态</th>
                <th>操作</th>
            </tr>

            <s:iterator value="#session.ListNews" status="status">
               <tr>
                 <td><input type="checkbox" name="ids" value="${id}" /></td>
                 <td><s:property value="id"/></td>
                 <td><a href="listonenews?news1.id=${id}"><s:property value="title"/></a></td>
                 <td><s:property value="newscategory.categoryName"/></td>
                 <td><s:property value="newsmedia.mediaName"/></td>
                 <td><s:property value="user.name"/></td>
                 <td><s:property value="date"/></td>
                 <td>
                 <s:if test="status==0"><a href="ajaxAdminGet?id=${id}&news1.title=${TITLE}">待审批</a></s:if>
                 <s:if test="status==1"><a href="ajaxAdminTransport?id=${id}&news1.title=${TITLE}">执行中</a></s:if>
                 <s:if test="status==2">已归档</s:if>

                 </td>

                 <td>
                 <a name="del" href="del?id=${id}">删除</a>
                  <a href="toupdate?id=${id}">修改</a>
                 </td>
               </tr>

            </s:iterator>

 求大神看看~~

http://blog.csdn.net/risingsun001/article/details/10950509

同样的项目在另一台电脑上是可以的。。。。

在后台打印输出一下,参数有没有乱码

把前后台的编码解码方式全都设置为utf-8