JBOSS 点滴

丰丰的博客

struts错误

错误提示:
Cannot retrieve definition for form bean null on action ,
说明你的bean是空的, 并没有把formbean映射到action中,
同普通ActionForm一样,Action类和JSP都可访问动态ActionForm,而访问方法也基本一致。访问动态ActionForm与访问普通ActionForm的最大区别在于对属性的访问方式不同。在标准ActionForm中,针对每个属性都提供了getter和setter方法,来读取和设置属性。而DynaActionForm把所有的属性保存在一个Map对象中,因此访问DynaActionForm中的属性与访问Map对象中的方法类似.

<action path="/addComment" scope="request" type="angus.action.CommentLinkAction">
这里缺少了一个name="commentForm"

如下:
<action path="/addComment" name="commentForm" scope="request" type="angus.action.CommentLinkAction">

posted on 2009-10-12 12:02 半导体 阅读(133) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: