Why I can't use <jsp:getProperty> without <jsp:useBean>?
问题 Say there is servlet that has code: protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { foo.Person p = new foo.Person("Evan"); req.setAttribute("person", p); RequestDispatcher view = req.getRequestDispatcher("/result.jsp"); view.forward(req, resp); } , that goes to result.jsp to print given name (Evan). Here is a picture of how it would look (source Head First Servlets and JSP): I know that <jsp:useBean> returns same Person object by