I found in a struts project this action mapping: 

```
<action name="action" class="MyClass" method="add">
<result name="success">/jsp/test.jsp</result>
</action>

```

And in MyClass there is no method name ="add" but there is a method "onAdd"
I wanna know if struts know the name of the method in this case or its an error ?
because I found this in much actionmapping in this project;

Thanks for your help;