按照老師說的步驟一步一步下來了,可是到了最后一步還是這樣,沒有達到想要的結果。有沒有懂得幫忙解決一下,多謝了。
4 回答

輝揚
TA貢獻29條經驗 獲得超12個贊
?<filter-mapping> ????????<filter-name>struts2</filter-name> ????????<url-pattern>/*</url-pattern> ??</filter-mapping>
<struts> ??<package?name="default"?namespace="/"?extends="struts-default"> ?? <action?name="helloworld"?class="com.imooc.action.HelloWorldAction"> ?? <result?>result.jsp</result> ?? </action> ?? ?? ??</package> </struts>
你先試試web.xml里面的filter-mapping 中用 /* 標記所有
然后在struts.xml里面配置就按一個 "/" 命名看看能不能出來。
我基本懷疑還是你的配置文件有點問題,能不能貼出你的配置文件代碼?
添加回答
舉報
0/150
提交
取消