Struts 2 repopulate field when a conversion error happens without using validation.xml
posted 4 years ago
I'm using struts2. I need to repopulate a date field after a conversion error happens. I'm not using the validator xml for my validation instead using the validate method in my action class. How do i set repopulatefield to true in case of a conversion error?
You have to assign it back to the corresponding field. specify value in all the fields.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.