<bean:write name="notesActionForm" property="content"/>
name="notesActionForm"就是对应你的notesActionForm这个ActionForm
 property="content"就是对应你的notesActionForm里的content这个属性
看看孙卫琴的那本书对入门来说还是不错了

解决方案 »

  1.   

    Cannot find bean NotesActionForm in any scope
    但是总是出现上面的错误是什么原因啊???
    那代码是怎么写的呢???
      

  2.   

    Cannot find bean NotesActionForm in any scope?
    是不是你在Struts-config.xml文件中没对应好相应的formbean?
    关于<bean:write name="notesActionForm" property="content"/>楼上的已经说得很好了,当然了,在你的notesActionForm里,content这个属性还要写好相应的get/set方法哦。
      

  3.   

    <form-beans>
        <form-bean name="notesActionForm" type="struts.NotesActionForm" />
    </form-beans><bean:write name="notesActionForm" property="content"/>NotesActionForm类里面也有content的GET和SET方法。
    错误:Cannot find bean notesActionForm in any scope
      

  4.   

    相当于在你的Action中,设置request.setAttribute("notesActionForm", notesActionForm);在jsp中写
    request.getAttribute("content")
      

  5.   

    改成
    <bean:write class="notesActionForm" property="content"/>