("INSERT into oe1 (content)"+"values(\'"+content+"\')")
("update oe1 set content=\'"+content+"\'");'不要转义吧?
("INSERT into oe1 (content)"+"values('"+content+"')");
----->   ("update oe1 set content='"+content+"'");

解决方案 »

  1.   

    错误信息:org.apache.jasper.JasperException: Unable to compile class for JSPNo Java compiler was found to compile the generated source for the JSP. 
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK 
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart. 
    If using an alternate Java compiler, please check its installation and access path.大家说清楚点啊
      

  2.   

    //re.next()没有,\'不需要转义if(!re.next())
    { st.executeUpdate("INSERT into oe1 (content)"+"values('"+content+"')");
      out.println("记录插入完毕!");}
     else 
       {st.executeUpdate("update oe1 set content='"+content+"'");
    out.println("更改成功!");}
      

  3.   

    if(content==null)这样可能不能判断是不是空知,改为content==""||null.equals(content)看看
      

  4.   

    if((content!=null) && (content!="")) {
       ......
    }if(!re.next()) {
       ......
    }
      

  5.   

    你有两个try
    在加一个catch就可以了
      

  6.   

    if(re==null)
    { 是不是应该改成:
    if(re.next())

    }