I have a jsp which displays some read only information and few fields for input which are all part of the same bean/form.
When the form is submitted and the validation fails, the display only information is lost from the form. below is my code. how do i retain my form values and still display the validation errors?
2) Suggestion here you are using chain result type which is not required(if possible avoid using chain). Instead you can prepare interceptor for populating data.
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.
If I use prepareinterceptor, would it be called automatically, everytime, my submit is called? along with validation xml? Can you help me with an example to implement prepare in this scenario. Below is the jsp.
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad: