0
<jsp:useBean id="customers" type="Customers" scope="session" />
<jsp:getProperty name="name" property="fullName" />
<%= customers.getFullName() %>
<jsp:getProperty name="address" property="address" />
<%= customers.getAddress() %>
<jsp:getProperty name="city" property="city" />
<%= customers.getCity() %>

在 Servlet 文件中

RequestDispatcher disp = request.getRequestDispatcher("home.jsp");
disp.forward(request, response);

问题是 home.jsp 没有显示任何输出或错误。

4

0 回答 0