[size=small]使用<s:property value="attrName"/>
1.要确保Action类为JavaBean
2.不能使用重定向,如在struts.xml中配置<result type="dispatcher" name="success">/success.jsp</result>[/size]
1.要确保Action类为JavaBean
2.不能使用重定向,如在struts.xml中配置<result type="dispatcher" name="success">/success.jsp</result>[/size]
本文介绍在Struts2框架中使用&s_property标签的注意事项:1.确保Action类遵循JavaBean规范;2.避免使用重定向,推荐采用dispatcher方式跳转页面。
5316

被折叠的 条评论
为什么被折叠?



