--- Martin Castellanos <[EMAIL PROTECTED]> wrote: > Hi, I'm trying to use the xml validation, the validation is executing and > detecting errors, but after the validation the method save gets called > instead of invoking the input action it's executing the 'success' action. > I've tried several things but still can't see what's missing, I'm using > Spring as the object factory. I'd appreciate any help.
What's the signature of your action class? Dave > * > *DEBUG [http-8084-4] (ValidationInterceptor.java:134) - Validating > /books/save with method save. > DEBUG [http-8084-4] (DefaultListableBeanFactory.java:354) - No bean named ' > com.opensymphony.xwork2.validator.validators.VisitorFieldValidator' found > in > [EMAIL PROTECTED]: > defining beans > [propertyConfigurer,bookDataSource,bookSessionFactory,bookDao,bookAction]; > root of factory hierarchy > DEBUG [http-8084-4] (CollectionFactory.java:114) - Creating [ > java.util.LinkedHashMap] > DEBUG [http-8084-4] (AbstractAutowireCapableBeanFactory.java:892) - Not > autowiring property 'validatorContext' of bean ' > com.opensymphony.xwork2.validator.validators.VisitorFieldValidator' by > name: > no matching bean found > DEBUG [http-8084-4] (AnnotationActionValidatorManager.java:146) - Running > validator: > [EMAIL PROTECTED] > object > [EMAIL PROTECTED] and method null > DEBUG [http-8084-4] (DefaultListableBeanFactory.java:354) - No bean named ' > com.opensymphony.xwork2.validator.validators.RequiredStringValidator' found > in > [EMAIL PROTECTED]: > defining beans > [propertyConfigurer,bookDataSource,bookSessionFactory,bookDao,bookAction]; > root of factory hierarchy > DEBUG [http-8084-4] (CollectionFactory.java:114) - Creating [ > java.util.LinkedHashMap] > DEBUG [http-8084-4] (AbstractAutowireCapableBeanFactory.java:892) - Not > autowiring property 'validatorContext' of bean ' > com.opensymphony.xwork2.validator.validators.RequiredStringValidator' by > name: no matching bean found > DEBUG [http-8084-4] (DefaultListableBeanFactory.java:354) - No bean named ' > com.opensymphony.xwork2.validator.validators.RequiredStringValidator' found > in > [EMAIL PROTECTED]: > defining beans > [propertyConfigurer,bookDataSource,bookSessionFactory,bookDao,bookAction]; > root of factory hierarchy > DEBUG [http-8084-4] (CollectionFactory.java:114) - Creating [ > java.util.LinkedHashMap] > DEBUG [http-8084-4] (AbstractAutowireCapableBeanFactory.java:892) - Not > autowiring property 'validatorContext' of bean ' > com.opensymphony.xwork2.validator.validators.RequiredStringValidator' by > name: no matching bean found > DEBUG [http-8084-4] (AnnotationActionValidatorManager.java:146) - Running > validator: > [EMAIL PROTECTED] > object > [EMAIL PROTECTED] and method null > ERROR [http-8084-4] (DelegatingValidatorContext.java:279) - Validation > error > for book.book.title:Book title is required > DEBUG [http-8084-4] (AnnotationActionValidatorManager.java:146) - Running > validator: > [EMAIL PROTECTED] > object > [EMAIL PROTECTED] and method null > ERROR [http-8084-4] (DelegatingValidatorContext.java:279) - Validation > error > for book.book.description:Book description is required > DEBUG [http-8084-4] (DefaultActionInvocation.java:383) - Executing action > method = save > > > This is a snippet from my struts.xml > > <package name="books" extends="struts-default" namespace="/books"> > > <!-- Default interceptor stack. --> > <default-interceptor-ref name="basicStack"/> > > <action name="list" method="list" class="bookAction"> > <result>list.jsp</result> > </action> > <action name="input" method="input" class="bookAction"> > <result name="success" type="redirect-action">list</result> > <result name="input">input.jsp</result> > </action> > <action name="edit" method="edit" class="bookAction"> > <result name="success" type="redirect-action">list</result> > <result name="input">input.jsp</result> > </action> > *<action name="save" method="save" class="bookAction">** > <result name="success" type="redirect-action">list</result> > <result name="input">input.jsp</result> > <interceptor-ref name="validationWorkflowStack"/> > </action>* > <action name="delete" method="delete" class="bookAction"> > <result name="success" type="redirect-action">list</result> > </action> > </package> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]