Sep 14th, 2008, 02:08 PM
Present original values in a form
Is there any way to retrieve originally submitted values (preferably as strings) to a SimpleFormController to show the form again with originally posted values filled in it?
My concerns are as follows (I may wrong here).
Here I'm not using Spring tag libraries in my JSP (form). So I need to manually populate originally submitted values.
We can get those values using fieldError.getRejectedValue(). But I want to show the all the values (not only invalid values). Retrieving rest of values via command object is not possible. For example; if the controller accepts two different date formats (yyyy/mm/dd & yyyy/m/d) for a give field and if the validation for that field succeeded, we can't say the format used by the user by looking at the field in command object (if it is a java Date object).
Thank you very much for your consideration!
Tags for this Thread