这是我要使用的类
package cn.mldn.lxh.servlet;
public class Simple
{
private String name;
public Simple(){}
public void setName(String name)
{
this.name = name ;
}
public String getName()
{
return this.name ;
}
}
这是使用的类
package cn.mldn.lxh.servlet;
import java.io.* ;
import javax.servlet.* ;
import javax.servlet.http.* ;
public class ELServletDemo02 extends HttpServlet
{
public void doGet(HttpServletRequest req,HttpServletResponse resp) throws IOException,ServletException
{
Simple s=null;
s = new Simple() ;
s.setName("lisa") ;
req.setAttribute("sim",s) ;
req.getRequestDispatcher("eldemo04.jsp").forward(req,resp) ;
}
public void doPost(HttpServletRequest req,HttpServletResponse resp) throws IOException,ServletException
{
this.doGet(req,resp) ;
}
};
错误内容

这是包里的结构
