把BEAN的源码帖出来看看,userCheck没有有初始化?
另外服务器设置正确?

解决方案 »

  1.   

    <%@ page import ="MyProjects.Exceed.utl.ExceedUserCheck" %>
    <%@page contentType="text/html;charset=gb2312"%>
    <jsp:useBean id="MyUserCheck" scope="session" class="MyProjects.Exceed.utl.ExceedUserCheck" type="MyProjects.Exceed.utl.ExceedUserCheck" />
    <jsp:setProperty name="MyUserCheck" property="*"/>
    <html>
    <head>
    <title>Welcome to you!</title>
    </head>
    <body>
    <p><%=MyUserCheck.getUserCheck()%></p>
    </body>
    </html>
      

  2.   

    估计问题在bean里的getUserCheck
    bean里要符合一定的规范,如下
    private String userCheck=null;
    public string getUserCheck()
    {
    return this.userCheck;}
    public void setUserCheck(String userCheck)
    {
    this.userCheck=userCheck}
      

  3.   

    既然问题在这句<p><%=MyUserCheck.getUserCheck()%></p>
    我想应该是这个方法没有返回值吧……