Skip to main content

HTML Forms

Learn HTML Forms (Form Handling, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes HTML form : a <form> element groups inputs and sends them to the server when the user submits. Main attributes : action is the URL and method is get or post ; each input needs a name because the name is the request parameter key. Spring side : read single values with @RequestParam or bind many values to an object with @ModelAttribute .

More lessons in Form Handling