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: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]