用struts总报No bean specified的错!是什么原因导致的呢? 急呀!在线等待ing!请有经验的朋友快点解答!!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 按字面意思:没有定义formbean,应该是struts-config.xml配置不对 http://www.cnpoint.com/MenuAction.do?action=main 把<layout:submit reqCode="saveContent" >取消</layout:submit>(生成的url为:SaveContent.do)改为下面<a href="SaveContent.do?reqCode=showContent">取消 </a> (生成的url为:SaveContent.do?reqCode=showContent)就可以了!代码如下:<layout:form action="SaveContent.do" styleClass="FORM" key="保存" width="700"> ...... ...... ...... <layout:submit reqCode="showContent" >取消</layout:submit></layout:form> 为什么在<layout:submit>中的reqCode="showContent"代入不到url中呢! 登陆弹出窗口登陆不对后显示错误信息 为什么返回jsp页面到浏览器端不带有java代码 整合struts1系统与strut2系统 做EJB实例教程的例子时遇到的问题 如何手动把一个项目部署到tomcat上 J2EE文件下载的问题 怪事年年有,今天最希奇 求JBoss 3.2.X下的连接池配置和应用. 为什么eclipse插件识别不出来? 请问下mysql里面char型主键自增的问题! struts-menu在指定target打开 struts总也无法正常运行!!!为什么呀?帮帮忙吧!
没有定义formbean,应该是struts-config.xml配置不对
<a href="SaveContent.do?reqCode=showContent">取消 </a> (生成的url为:SaveContent.do?reqCode=showContent)
就可以了!代码如下:
<layout:form action="SaveContent.do" styleClass="FORM" key="保存" width="700">
......
......
......
<layout:submit reqCode="showContent" >取消</layout:submit>
</layout:form>
为什么在<layout:submit>中的reqCode="showContent"代入不到url中呢!