Home > front end >  JSP read data has always been a null Pointers for the great spirit guide
JSP read data has always been a null Pointers for the great spirit guide

Time:09-17

CodePudding user response:

With EL can avoid this kind of NPE, don't write Java code in the JSP

CodePudding 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>




  • Related