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.DefaultWorkflowInterceptor" 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