括号太多了吧
if((rs.last())&&(rs.first())){%>主页在web.xml中配置.

解决方案 »

  1.   

    括号没有多啊.
    我知道在web.xml是配置.在具体怎么配置呢??
      

  2.   

    <welcome-file-list>
            <welcome-file>jkd.html</welcome-file>
    </welcome-file-list>
      

  3.   

    web.xml<welcome-file-list>
            <welcome-file>index.html</welcome-file>
            <welcome-file>index.htm</welcome-file>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
    添加你需要的主页
      

  4.   

    <%
    if(!rs.next()){
    %>
    <tr> 
      <td bgcolor="#FFFFFF" nowrap colspan="2"> 
        <font color="#FF0000">·</font>错误:没有此留言 !
      </td>
    </tr>
    <%}else{%>
      

  5.   

    不行指的是什么?是运行报错呢,还是没有显示内容?报错的话,可能rs是null,