about the adding up of the error messages and the hanging of error messages.
make sure the action has this part:
 scope="prototype in the applicationCOntext.
example:
    <bean id="passwordHintAction"
class="nl.tryllian.tolselfservice.webapp.action.PasswordHintAction"
scope="prototype">
        <property name="userManager" ref="userManager"/>
        <property name="mailEngine" ref="mailEngine"/>
        <property name="mailMessage" ref="mailMessage"/>
    </bean>


tibi wrote:
> thanks matt!!
>
>
>
>
>
>
> Matt Raible wrote:
>   
>> If you look in struts.xml, you'll see that the validator is excluded
>> from certain methods:
>>
>>                 <interceptor-ref name="validation">
>>                     <param
>> name="excludeMethods">cancel,execute,delete,edit,list</param>
>>                 </interceptor-ref>
>>
>> Matt
>>
>> On Dec 14, 2007, at 12:48 AM, tibi wrote:
>>
>>     
>>> hi,
>>>
>>> can someone enlight me on struts validator.
>>>
>>> when i have a struts validator on a form and i call a method the
>>> validator cicks in before i submit the form. that is not what i want.
>>> when i move the code to the execute method the validator does not cick
>>> in and my app works fine.
>>>
>>> example:
>>> this works:
>>>         <action name="convertSubscribtion" class="subscriberAction"
>>> method="execute">
>>>
>>>     public String autoSelect() {
>>> //do some stuff here
>>> return SUCCESS
>>>  }
>>>
>>>     @Override
>>>     public String execute() throws Exception {
>>>         log.debug("execute");
>>>         return autoSelect();
>>>     }
>>> ============================================
>>> this not because the validoter is in the way:
>>>
>>>         <action name="convertSubscribtion" class="subscriberAction"
>>> method="autoSelect">
>>>
>>>     public String autoSelect() {
>>> //do some stuff here
>>> return SUCCESS
>>>  }
>>>
>>>
>>> thanks,
>>>
>>> tibi
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to