您的位置:首页 > 编程语言 > Java开发

在webx.ml中 配置struts2 后 welcome-file-list 失效的解决办法

2013-09-12 21:43 417 查看
struts2

<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>


welcome-file-list

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>


index.jsp

<%--<jsp:forward page="${pageContext.request.contextPath}/index-init.action" />
--%>
<meta http-equiv='refresh'  content='0;url=${pageContext.request.contextPath}/index-init.action'>


在jsp文件中的两种方式选一即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: