I know it's not necessary to do this, especially with such a small form, but I want to keep the values entered in my forms even after the validation fails. There's not much to my code, so I'll only type in the essentials:
I have the get and set methods for username and password already.
One cannot simply use scriptlets in JSP. And also, mycaruba.
subject: Keeping values in a form after failure to validate