//jsp code
<input type="text" id="sname" name="sname" value="<%= rs.getString("name") %>" style="color:black;width:96%;text-align:center;height:35px" disabled/>
//Logic to handle jsp form request
if(request.getParameter("submt")!=null){
String name[]=request.getParameterValues("sname");
System.out.println(name[0]+"\t"+name[1]+"\t"+name[2]+"\t");
}
//
java.lang.NullPointerException: Cannot load from object array because "name" is null
Apr 11, 2022 1:07:13 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [/StudentPortal] threw exception [An exception occurred processing [/AdminHome3.jsp] at line [39]
39: System.out.println(name[0]+"\t"+name[1]+"\t"+name[2]+"\t");