struts中dispathaction可不可以和BeanWrite一起用?

来源:百度知道 编辑:UC知道 时间:2024/06/02 14:32:14
struts中dispathaction可不可以和BeanWrite一起用?

你是说可以不可以用JSP标签<bean:write name=".."property=".."/>
还是别意思啊?
我觉得他们两不搭噶的.在JSP只要你能传进对象就可以用bean write标签.
struts中的DispatchAction 只是调用你的sercice中的方法 也就是你biz业务方法然后根据你的dispatchaction 中的 mapping.findforward("XXX")的XXX在struts-config.xml中 配置的path路径决定转发的哪个页面.
你说的那个情况,完全可以..只要页面能得到对象,都能bean write.