This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Keeping values in a form after failure to validate
 
Similar Threads
Struts 2 password encrypt
Want to create dynamic form and fields on click of a menu button.
Struts 2.1 xhtml forms rendering invalid html
Struts 2 validation question
Struts:How to put vertical space between text boxes