else if(text1!=null && text2==null)else if(text1!=null && text2.equals(""))

解决方案 »

  1.   

    不好意思,写错了
    text2.length()==0
    加上()
      

  2.   

    有 ==这种写法吗?  楼上的说的对  taxt2.equals("")
      

  3.   

    else if(text1!=null && text2.equals(""))
    如果text2!=null又怎么改法?
      

  4.   

    location: class org.apache.jsp.jmeport.admin.s_005ffind.s_005fcontent_jsp
    else if(text1!=null && taxt2.equals(""))
                                   ^
    --------------------------------------------------------------
    以上为错误提示.
      

  5.   

    模糊查,应该怎么加上like???
      

  6.   

    如果你的判断是第一个的话
    else if(text1!=null && taxt2.equals(""))
    --->
    if(text1!=null && taxt2.equals(""))
      

  7.   

    你的text1是http传过来的吗?
    如果是 那就必须判断传递过来的值是否为空才可以。
      

  8.   

    location: class org.apache.jsp.jmeport.admin.s_005ffind.s_005fcontent_jsp
    else if(text1!=null && taxt2.equals(""))
                                   ^
    --------------------------------------------------------------
    以上为错误提示.是taxt2还是text2?判断串时:应先判断是否空,再判断是否是空串。String s;
    if(s!=null&&s.length()>0){
    }