调用类中的属性,通过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.

相关文章:

  • 2021-12-08
  • 2021-04-21
  • 2021-08-26
  • 2021-06-27
猜你喜欢
  • 2022-12-23
  • 2022-01-15
  • 2021-12-29
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案