j_username and j_password are standardized names in the Java Servlet specification, so application servers (or servlet containers) are aware of them and can authenticate the container regardless of the application. This allows, for example, to include a single character in several web applications deployed on the same application server. See “SRV 12.5.3 Form-Based Authentication” in JSR-154
Spring's security constant is just a convenience for users, so they don’t need to re-enter their username; if Spring Security recognizes them, it automatically suggests a username.
mhaller
source share