Hmm... Are your validations down in the "actions" package of your Action? You said 
only that it was in "br.com.company.app". It needs to find the validations for your 
Action to apply them.

The other problem is the stuff Mike CB checked in a long time ago :-)

He implemented what DefaultWorkflowInterceptor does in ActionSupport and moved what 
was ActionSupport down to BaseActionSupport. Creating the DefaultWorkflowInterceptor 
was the first of a 2 part process, the second of which is to undo this change (sorry 
Mike). If you override execute() instead of doExecute() you will see the errors, 
otherwise it will return "input" without running your Action. Of course, the 
DefaultWorkflowInterceptor does this too, so you won't even get to the Action 
execute() method... 

I should have taken care of this earlier, but didn't want to piss anyone off. As a 
general rule, I don't want ANY logic in ActionSupport and anything, like this, that 
are applying logic to Actions should be implemented as Interceptors so they can be 
applied to any Actions, not just the ones extending ActionSupport.

Expect to see this change and doExecute() go away.

> -----Original Message-----
> From: Samuel Mota [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 28, 2003 9:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] Validation Framework doubt
> 
> 
> 
> Hi,
> 
> >map of fieldErrors. It WILL NOT stop execution just because 
> you have an 
> >error. You can apply the DefaultWorkflowInterceptor after the 
> >validation to have it automatically return "input" if you have
> any errors >applied to your Action. Otherwise, you can decide 
> how to deal with them in your execute
> () method.
> 
> I've added the DefaultWorkflowInterceptor to my interceptors 
> list: <interceptor 
> class="com.opensymphony.xwork.interceptor.DefaultWorkflowInter
> ceptor" name ="workflowinterceptor"/>
> 
> And my action is as follow:
> <action class="br.com.company.app.actions.UserLogin" name="login">
>             <interceptor-ref name="validator"/>
>             <interceptor-ref name="workflowinterceptor"/>
>             <result name="error" type="dispatcher">
>                 <param name="location">/index.jsp</param>
>             </result>
>             <result name="input" type="dispatcher">
>                 <param name="location">/index.jsp</param>
>             </result>
>             <result name="success" type="dispatcher">
>                 <param name="location">/app.jsp</param>
>             </result>
>             <interceptor-ref name="defaultStack"/>
> </action>
> 
> Added UserLogin-validation.xml to my br.com.company.app package ...
> 
> But at my doExecute() method I have no errors 
> (this.validationAware.actionErrors and .fieldErrors =
> null)
> 
> What am I missing?
> 
> (I've posted the interceptor stuff to you guys correct me If 
> something is wrong on this approach:)
> 
> thanks
> 
> + Samuel G. Mota
> + [EMAIL PROTECTED]
> + 55 (11) 4417 7093
> + Business Application Dpt.
> + Netset Serviços em Tecnologia
> + a Hypercom Company
> + http://www.hypercom.com
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to