Ich bin in einem Post AP-Ebene High School Informatik Klasse und arbeite an einem Gruppenprojekt, wo wir Microsoft Outlook Kalender API verwenden müssen, um den Kalender mit Informationen aus einer gegeben HTML-Formular Wir wissen nicht genau, wo wir beginnen sollen, wie wir die in der HTML-Datei bereitgestellten Informationen in unser Java-Programm übertragen können, das die Informationen verarbeiten und den Outlook-Kalender füllen soll. Hier ist eine Kopie unserer HTML-Datei, ist das Ziel, die Informationen, die vom Benutzer auf das HTML-Formular zu senden, um unsere Java-Datei für die Verarbeitung:Wie HTML-Eingaben an eine Java-Datei übergeben werden
<!doctype html>
<html lang="en">
<head>
<title>Accomodation Request Form</title>
\t <style type="text/css"> \t \t \t
\t \t body{font-family:Arial, Sans-Serif;}
\t \t #container {width:300px; margin:0 auto;}
\t \t form label {display:inline-block; width:140px}
\t \t form input[type="text"],
\t \t form input[type="password"],
\t \t form input[type="email"]
\t \t {width:160px;}
\t \t form .line {clear:both;}
\t \t form .line.submit {text-align:right;}
\t </style>
</head>
\t <body>
\t \t <h1>Accomodation Request Form</h1>
\t \t <form action="email.php" name="EC Form" method="post">
\t \t <table>
\t \t <tr>
\t \t \t <td>First name:</td>
\t \t \t <td><input type="text" name="firstname" id="firstname" required="true" placeholder="Firstname"></td> \t \t \t </tr>
\t \t <tr>
\t \t \t <td>Last name:</td>
\t \t \t <td><input type="text" name="lastname"id="lastname" required="true" placeholder="Lastname"></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Student ID:</td>
\t \t \t <td><input type="text" name="ID"id="ID" required="true" placeholder="ID"></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Course Name:</td>
\t \t \t <td><select name="course">
\t \t \t <option value="Advanced Projects">Advanced Projects</option>
\t \t \t <option value="AP US History">AP US History</option>
\t \t \t </select>
\t \t \t </td>
\t \t <tr>
\t \t <tr>
\t \t \t <td>Course Teacher:</td>
\t \t \t <td><select name="teacher">
\t \t \t <option value="Mr. Srock">Mr. Srock</option>
\t \t \t <option value="Mr. Alcorn">Mr. Alcorn</option>
\t \t \t </select>
\t \t \t </td>
\t \t <tr>
\t \t <tr>
\t \t \t <td>Test Period:</td>
\t \t \t <td><select name="period">
\t \t \t <option value="1">1</option>
\t \t \t <option value="2">2</option>
\t \t \t <option value="3">3</option>
\t \t \t <option value="4">4</option>
\t \t \t <option value="5">5</option>
\t \t \t <option value="6">6</option>
\t \t \t <option value="7">7</option>
\t \t \t </select>
\t \t \t </td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Accommodations Requested:</td>
\t \t \t <td><textarea name="Accommodations" rows="4" cols="20" id="Accommodations" required="true" placeholder="Accommodations"></textarea></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Student Email:</td>
\t \t \t <td><input type="text" name = "email" id="email" required="true" placeholder="Email"></td>
\t \t </tr>
\t \t \t <td><input type="submit" value="Send"></td>
\t \t \t <td><input type="reset" value="Reset"></td>
\t \t </form>
\t </body>
</html>
'http: // www.tutorialspoint.com/servlets /' – Srinivasu
Servlets sind korrekt. Da dies ein ziemlich kleines Projekt zu sein scheint, würde ich Spring Boot empfehlen. http://projects.spring.io/spring-boot/ –
SpringMVC basiert auf Servlets, Sie müssen HTTP-POST-Anfrage behandeln. Und wie erwähnt, könnte Projekt SpringBoot Projekt sein. Sie können andere MVC-Frameworks und nicht nur in Java überprüfen, wenn Sie möchten. Sie können den HTTP-Server Node.js verwenden. –