Pay attention to the struts config file, struts.xml and other sub config files, it's import to make sure that there is no same name actions.

Today morning i meet a problem, because there are same named java classes files and same named actions, so the validation framework didn't work rightly. And i can't confirm where the bug is. Finally i guessed something above, hoooo, it is!
I think because there's homonymy files, so the struts doesn't know what to do, so it strikes.

在编写struts时,要保证类文件和配置文件中没有重名的现象,不然会扰乱struts框架的工作。比如如果action的名称相同,validation就不能正常工作了。