ParamertersInterceptor可以根据表单字段名,映射到action中相应属性的getter/setter方法
StaticParamertersInterceptor可以讲xwork.xml中为action配置参数,映射到映射到action中相应属性的getter/setter方法
JSP:


















Action:


















































配置文件:




运行结果(jsp文件文本框输入25.提交):
25
Gao
Xiang
ParamertersInterceptor可以根据表单字段名,映射到action中相应属性的getter/setter方法
StaticParamertersInterceptor可以讲xwork.xml中为action配置参数,映射到映射到action中相应属性的getter/setter方法
JSP:
Action:
配置文件: