输入banner图图片脚本导航/分类

訪问站点时仅仅是显示主页(index.jsp),没有请求连接数据库读取数据。


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‘>


訪问站点时仅仅是显示主页(index.jsp),没有请求连接数据库读取数据。

标签:map   fresh   连接数   back   font   读取数据   for   站点   family