SPRING CONCEPTS
Request parameters
Spring Concepts / Request parameters
Request parameters are named client inputs from a query string or supported form body.
Understand the idea
getParameter returns a String or null. The input’s HTML name chooses the key. GET forms put fields in the URL; POST forms typically send form-encoded body fields. Treat values as untrusted input and validate before use.
A concrete example
<input name="title">
→ request.getParameter("title")In the application
HelloServlet reads name; TodoServlet reads title, completed, id, and csrf.
A DOM id does not replace an input name. JSON body binding in the later API is a different input mechanism.