Re: Action validation is being performed when it shouldn't

2011-04-30 Thread Alex Barnes
In case anyone is curious this has been solved by removing @Transactional annotations from all action class methods and moving them on to the methods on the DAOs. The presence of the annotation on the action class was resulting in a JDKDynamicProxy object being passed to the AnnotationValidationIn

Re: Action validation is being performed when it shouldn't

2011-04-29 Thread Alex Barnes
Chris, Thanks for the reply. I think this is the ValidationInterceptor rather than the workflow interceptor. The stack trace is as follows: ava.lang.NullPointerException com.devcentre.yubi.application.action.NewSupplierAction.validate(NewSupplierAction.java:49) sun.reflect.NativeMethodA

Re: Action validation is being performed when it shouldn't

2011-04-29 Thread Chris Pratt
I don't use the those annotations, but from what I can tell, it only affects the XML validation (validation interceptor) not the programmatic validation (workflow interceptor). You can switch from execute to one of the unvalidated method names (I think input, cancel, and two others I can't think o

Re: Action Validation with Slashes

2008-05-16 Thread Jeromy Evans
Yellek wrote: should I be raising a Jira issue for this? Hi Peter, yes, it's would be helpful to raise an issue for it. In this case the ActionMapper knows about the allowSlashesInActionName setting but the XWork Validation doesn't know. --

Re: Action Validation

2008-01-13 Thread Cheng Wei Lee
I didn't really make use of maven, instead, I imported the struts-blank war file into Eclipse which would create a project for me automatically. That way I can see where to place the XML files. On Jan 13, 2008 7:53 PM, Gaurav Arora <[EMAIL PROTECTED]> wrote: > Hi list, > I am new to Struts an

Re: Action Validation

2008-01-13 Thread Gaurav Arora
Thanks for the reply Max. I decided to go with Maven to start Struts apps since that seemed to be the most widely practiced way. Didn't realise that Maven was excluding the XML files from the build. Works perfectly after the resource is included in the build. Thanks once again. On Jan 13, 2008 6:

Re: Action Validation

2008-01-13 Thread Max Shirow
Gaurav Arora wrote: I have an action named GuestBookAction and it's validation file named GuestBookAction-validation.xml, where should the validation xml be placed in the application hierarchy? It's fine if you put it exactly besides the java source file of your action; for example src

RE: Action validation settings with dispatch actions

2004-11-08 Thread Kinjal Sonpal
Lee, Nothing wrong about it. And I believe, this splitting would definitely enable you to have better control over the system. In fact, if you can manage to migrate to Struts 1.2.x, nothing like it. They have MappingDispatchAction meant precisely for this. You just have to put the name of the met