無意中修改了struts工程的配置文件,之后還原
發現頁面很多不能執行。
<!-- ========== Global Forward Definitions ============================== -->
<global-forwards>
<forward name="logoff" path="/logoff.do"/>
<forward name="logon" path="/logon.jsp"/>
<forward name="success" path="/mainMenu.jsp"/>
<forward name="search" path="/search.jsp"/>
<forward name="displayall" path="/displayall.do"/>
<forward name="insert" path="/insert.jsp"/>
<forward name="mainMenu" path="/mainMenu.jsp"/>
<forward name="confirmation" path="/confirmation.jsp"/>
</global-forwards>
<action path="/displayall"
type="addressbook.actions.DisplayAllAction"
name="nestedForm"
scope="request"
input="/mainMenu.jsp">
<forward name="success" path="/display.jsp"/>
</action>這個頁面
http://localhost/addressbook/displayall.do
找不到指定頁面。(之前是好好的)在eclipse里執行報以下警告!
[WARN] RequestUtils - No FormBeanConfig found under 'nestedForm'
[WARN] RequestUtils - No FormBeanConfig found under 'nestedForm'
[WARN] RequestUtils - No FormBeanConfig found under 'nestedForm'
[WARN] RequestUtils - No FormBeanConfig found under 'nestedForm'
確實也沒有修改代碼內容
發現頁面很多不能執行。
<!-- ========== Global Forward Definitions ============================== -->
<global-forwards>
<forward name="logoff" path="/logoff.do"/>
<forward name="logon" path="/logon.jsp"/>
<forward name="success" path="/mainMenu.jsp"/>
<forward name="search" path="/search.jsp"/>
<forward name="displayall" path="/displayall.do"/>
<forward name="insert" path="/insert.jsp"/>
<forward name="mainMenu" path="/mainMenu.jsp"/>
<forward name="confirmation" path="/confirmation.jsp"/>
</global-forwards>
<action path="/displayall"
type="addressbook.actions.DisplayAllAction"
name="nestedForm"
scope="request"
input="/mainMenu.jsp">
<forward name="success" path="/display.jsp"/>
</action>這個頁面
http://localhost/addressbook/displayall.do
找不到指定頁面。(之前是好好的)在eclipse里執行報以下警告!
[WARN] RequestUtils - No FormBeanConfig found under 'nestedForm'
[WARN] RequestUtils - No FormBeanConfig found under 'nestedForm'
[WARN] RequestUtils - No FormBeanConfig found under 'nestedForm'
[WARN] RequestUtils - No FormBeanConfig found under 'nestedForm'
確實也沒有修改代碼內容
为什么一定要重启电脑 (重启tomcat很多次,还是不可以 )??
配置文件 restart tomcat发现页面不能用 后来偶然重启电脑 一切都正常
好多次出现这个情况。
有人说 TOMCAT不支持热部署(不是很懂)