<!--根据操作类型确定显示"添加"还是修改-->
<c:if test="${type==\"add\"}"> 添加</c:if> 
<c:if test="${type==\"edit\"}">  修改</c:if> 
为什么我按照下面网址上的代码创建文件后老是在这两句(在edituser.jsp中)报错呢,还有就是列表界面上可以显示但没有数据????????详见: http://blog.csdn.net/javaeeteacher/article/details/4566463#comments

解决方案 »

  1.   

    <c:if test="${type}=='add'"> 添加</c:if>  
    <c:if test="${type}=='edit'"> 修改</c:if> 
    <c:else> 没有数据</c:else> 
      

  2.   

    studentlist页面上只有标题和添加学生的超链接没有学生信息那行(更别说修改删除链接了),在edituser.jsp添加不了信息.....
      

  3.   

    还有就是我用的是SQL Server2005,老师的博客上用的是Oracle,我只需修改获取连接的代码就行了吧
    public Connection getConnection() throws SQLException,ClassNotFoundException{
      if(con==null){
       Class.forName("oracle.jdbc.driver.OracleDriver");
       con = DriverManager.getConnection("jdbc:oracle:thin:@192.168.102.206:1521:orcl","training","123456");
      }
      

  4.   

    edituser.jsp:19:2: This tag is not recognized.
    <c:else> 没有数据</c:else>  </h2>
     ^----^
    edituser.jsp:19:2: This tag is not recognized.
    <c:else> 没有数据</c:else>  </h2>
     ^----^
    原来还可以看到添加信息的表格,现在报错了....