if( user_1.getUserId()=="")
????

解决方案 »

  1.   

    你的bean没有定义getUserId方法bean里面加上
    public String getUserId()
    {
    return this.userId;
    }
      

  2.   

    两个问题
    你的bean必须放在一个包里面
    第二是你的bean里面没有getter
      

  3.   

    Cannot find any information on property 'userId' in a bean of type 'HelloBean'
    什么意思呀?
      

  4.   

    你的javabean没有属性“userId“
    就是你的”HelloBean“里面没有
      

  5.   

    而且字符串判斷相等是用.equals()方法,不是用==的
      

  6.   

    if( user_1.getUserId()=="")可是你在bean中没有定义getUserId()方法,而且
    判断字符串相等应用.equals()
      

  7.   

    user_1.getUserId()==""?
    就是他的原因,理由楼上的朋友说的:-)
      

  8.   

    HelloBean中没有'userId' 这个属性
      

  9.   

    用==在这种情况下似乎也可以的------------〉在为null的时候就不行了,最好用equals
      

  10.   

    我也觉得是没有get函数的原因,
    你的注册帐号:<jsp:getProperty name="user_1" property="userId" /><br>
    上面这句话都引用了get方法,而你没有定义,可能就是这个原因,请楼主调试后,反馈一下最新情况!