Skip to content
Advertisement

java.lang.NumberFormatException: null with error status 500

I faced issue with submitting data from html to servlet Can’t

This is my html file

JavaScript

this is the servlet file for getting the data

JavaScript

error:

HTTP Status 500 – Internal Server Error Type Exception Report

Message null

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

JavaScript

Note The full stack trace of the root cause is available in the server logs.

Advertisement

Answer

Use name parameter instead of id. Change below 2 lines in your code and check if it works.

JavaScript

Best Regards, Haridas.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement