CodePudding user response:
With EL can avoid this kind of NPE, don't write Java code in the JSPCodePudding user response:
<% @ page language="Java" contentType="text/HTML. Charset=utf-8 "pageEncoding=" utf-8 "trimDirectiveWhitespaces=" true "% & gt;
<% @ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" % & gt;
.The ${stu. Sid} & lt;/td> The ${stu. Sname} & lt;/td> The ${stu. Sage} & lt;/td> The ${stu. Dizhi} & lt;/td> Modify & lt;/td>