运行代码时出现500错误,完全是这样的错误:
类型:异常报告
消息:
说明:服务器遇到内部错误(),导致服务器无法满足此请求。
我无法解决,有人能帮助我吗?
https://drive.google.com/file/d/1VSrnGnCSJidUaNZswvTlmzkKAIiJ2D5T/view?usp=sharing
我附上我的代码的邮政编码。请检查
预先感谢
答案 0 :(得分:0)
**Index.html**
**
<!DOCTYPE html>
<html>
<head>
<title>Insert Data</title>
</head>
<body>
<!-- Give Servlet reference to the form as an instances
GET and POST services can be according to the problem statement-->
<form action="./InsertData" method="post">
<p>ID:</p>
<!-- Create an element with mandatory name attribute,
so that data can be transfer to the servlet using getParameter() -->
<input type="text" name="st_id"/>
<br/>
<p>Name:</p>
<!-- Create an element with mandatory name attribute,
so that data can be transfer to the servlet using getParameter() -->
<input type="text" name="st_name"/>
<br/>
<p>Surname:</p>
<input type="text" name="st_last"/>
<br/>
<p>Major:</p>
<!-- Create an element with mandatory name attribute,
so that data can be transfer to the servlet using getParameter() -->
<input type="text" name="st_major"/>
<br/>
<p>Year:</p>
<!-- Create an element with mandatory name attribute,
so that data can be transfer to the servlet using getParameter() -->
<input type="text" name="grad_year"/>
<br/><br/><br/>
<input type="submit"/>
</form>
</body>
</html>`enter code here`**