name2 应该是一个bean的名字吧

解决方案 »

  1.   

    新建的的bean。。
    在输出页面用下面的语句输出:
    <bean:write name="name2" scope="request"/>
    运行结果出错:
    Cannot find bean name2 in scope request
      

  2.   

    胡写嘛, <bean:write name="这应该是bean的名字" property="name2" scope="request"/>
    其他自动生成的输出是怎么样?
      

  3.   

    我知道錯在哪里了。。
    必須在action的java文件里的execute函數里添加 request.setAttribute來添加屬性。。
    要不后面它就找不到。。