posted 21 years ago
Howdy.
I'm not sure why it's happening, but my validation causes all the data on the .jsp to erase (all integers become 0, all Strings become null) if it comes back with an error.
Here's what I have:
Maintain.jsp
I populate the bean with the following, it's in the Action that forwards to maintain.jsp
myDTO is an instance of MaintainDTO, which has the following
It works perfectly when the form first loads, but when validation returns an error, it uses all the default values of MaintainDTO.
Oddly enough, it also calls the reset method of MaintainForm.
Is there anyway I can keep my bean data safe on error?
EDIT: I don't believe I can use Client-side validation either. Part of my validation is a "requiredif" depending on the value of the radio buttons. It gets caught fine with the Server-side, but I can't seem to grab the "requiredif" conditions on switching to client-side.
[ June 01, 2004: Message edited by: Karl Beowulph ]