package test;
import java.io.*;public class SimpleBean {
private String name;
private String number;

public SimpleBean(){} public String getName() {
return name;
} public void setName(String name) {
this.name = name;
} public String getNumber() {
return number;
} public void setNumber(String number) {
this.number = number;
}

}
<%@ page language="java" import="test.*" pageEncoding="GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
  </head>
  
  <body>
    <jsp:useBean id= "BeanTest" scope= "application" class= "test.SimpleBean"></jsp:useBean> 
<jsp:setProperty   name= "BeanTest"   property= "name" value= "Joe"   /> 
<jsp:setProperty   name= "BeanTest"   property= "number" value= "123"   /> 
你好,<jsp:getProperty   name= "BeanTest"  property= "name"/> 
    <br/>
          您的编号是:<jsp:getProperty property="BeanTest" name="number"/>
  </body>
</html>运行网页后出现org.apache.jasper.JasperException: Attempted a bean operation on a null object.
请问如何解决?