读书人

struct-config.xml 中 action的parame

发布时间: 2012-08-10 12:19:33 作者: rapoo

struct-config.xml 中 action的parameter属性设置是什么意思

action>的parameter属性是给DispatchAction使用的,你的类要继承DispatchAction类,而不是普通的Action,Action只会执行execute方法,DispatchAction会根据parameter的值执行特定的方法,注意parameter的值不要设置为execute,也不要覆盖DispatchAction中的execute(),因为DispatchAction继承于Action,它的execute会首先执行,在execute()方法中取出parameter的值,通过java反射调用指定的方法。

?

?

/>

好了,可以进行测试了!!!

读书人网 >XML SOAP

热点推荐