Crud в JSP / Сервлет с postgresql - PullRequest
0 голосов
/ 06 апреля 2019

Я получил 500 Ошибка, когда я запускаю свой код, ошибка в точности так:

тип: Отчет об исключении

Сообщение:

описание: сервер обнаружил внутреннюю ошибку (), которая не позволила ему выполнить этот запрос.

Я не могу решить, кто-нибудь может мне помочь?

https://drive.google.com/file/d/1VSrnGnCSJidUaNZswvTlmzkKAIiJ2D5T/view?usp=sharing

Я прилагаю почтовый индекс моего кода. Пожалуйста, отметьте это

Заранее спасибо,

1 Ответ

0 голосов
/ 06 апреля 2019
**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`**
...