两部曲:
1:在你的web.xml中的Struts2的核心过滤器的映射中增加
<filter-mapping>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
2:把welcomelist改成你查询的action
<meta http-equiv=‘refresh‘ content=‘0;url=show.action‘>
时间: 2024-11-10 01:08:00