当前位置: 代码迷 >> Web前端 >> 登录主页实现跳转
  详细解决方案

登录主页实现跳转

热度:139   发布时间:2012-11-01 11:11:32.0
登录首页实现跳转

在Javaweb项目中,默认的首页一般会是index.html、index.jsp等等,在web.xml中通常会有以下配置

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

?这里指定了默认的首页,不过这样就没有经过Struts2去取得后台数据,如果欲取到后台数据,可以在进入首页是发出一个Request请求,HTML中的做法是刷新网页,然后定位。

<meta http-equiv="refresh" content="3;url=Menu.action" />
?
  相关解决方案