Hi Guys,
I've three screens assume that they are add, modify and view screens. I would like to use same form for all the screens.
But the problem is, each one of the screens has a different set of validation rules, how do i achieve this? Somewhere, i read that it
is possible to use action path names in validation.xml. Can anyone post a sample validation.xml?
Basically, you just use a different form class in the struts-config: http://jakarta.apache.org/struts/api/org/apache/struts/validator/DynaValidatorActionForm.html
When this class's validate method is called, it uses that action's path instead of form's name.
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin

