wood burning stoves*
The moose likes Struts and the fly likes Keeping values in a form after failure to validate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Keeping values in a form after failure to validate" Watch "Keeping values in a form after failure to validate" New topic
Author

Keeping values in a form after failure to validate

Darko Markovic
Greenhorn

Joined: Sep 15, 2013
Posts: 16

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
 
Similar Threads
Struts 2 password encrypt
Struts 2.1 xhtml forms rendering invalid html
Want to create dynamic form and fields on click of a menu button.
Struts 2 validation question
Struts:How to put vertical space between text boxes