[Opensource] Validation
Tzanko Stefanov
tzankos at ansco.com
Tue Feb 25 07:24:05 PST 2003
Hi folks,
<action path="..".. validate="false"> there is a validate attribute
(from Struts). I was wondering do you use this functioanlity to define a
Validation class in the xml?
I looked at Registration class - the one you recomend as Validation
example and must say that validating request params this way is a bit
too painful :-)
1) If valdation fails I have to rebuild my previous form. In your case
it is ok, but in my case I've got 10 drop down lists with a lot of
parameters. I cannot pass all in the request so I have to dig in the DB
(even if I use caching) get the values build the Inputs and so on. And
believe me just figuring out which exactly form to display is tedious.
Hence I need a way to store the previous form before processing the request.
2) The Validator should work with with ControlRequest/Response
parameters. Not Http!
So do you have something that complies with that (partial solutions are
not good:-)):
1) to define the Validator in the XML config file
2) to be able automatically to go back to the previous form (screen)
3) The Validator should not deal directly HTTPRequest
If so where can I see it? I have went through the mailing list but
nothing addresses all these issues together.
More information about the Opensource
mailing list