Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

While reading checkbox values by using getParameterValues("") method it says getting null error.

User_TPR87Apr 11 2022

//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");

Comments

I dont see a msi version in the link. whats the process to get the msi file.

PhHein

Have a look here:

https://www.oracle.com/technetwork/java/javase/documentation/msiinstallerfaq-2967694.html

It is available to Java SE Subscription, and Java SE Desktop Subscription subscribers, and is a commercial feature entitlement for  legacy Java SE Advanced and Java SE Advanced Desktop customers.

1 - 3

Post Details

Added on Apr 11 2022
0 comments
296 views