[Struts2] 标签

调用类中的属性,通过get方法调用,而非其属性名调用.

比如A类中有属性a1,a1的get方法是getA1Method();

相应Action类中的get方法是getA1Action().

那么需要通过:

<s:property value="a1Method" />不能调用,

而是a1Action才能调用get方法.

property中的value映射的是Action中的get方法.

这个Action必须是struts.xml配置文件中跳转该网页的result对应的<action>标签中的class attribute指定的Action.