http://localhost:8080/main.do?action=index改成http://localhost:8080/来访问首页
来源:互联网 发布:彩票组合软件 编辑:程序博客网 时间:2024/06/06 04:42
web.xml
<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
index.jsp:
<html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK"><title>Loading...</title><script language="javascript" type="text/javascript">window.location.href="main.do?action=index";</script></head><body></body></html>
访问首页路径:http://localhost:8080/main.do?action=index
需要访问首页的时候,直接用 :http://localhost:8080/
解决方案:修改index.jsp
<jsp:forward page="/egmain.egov?action=index"></jsp:forward><html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK"><title>Loading...</title><script language="javascript" type="text/javascript">//window.location.href="egmain-index.html"; //此处用jsp:forward 动态跳转命令</script></head><body></body></html>
0 0
- http://localhost:8080/main.do?action=index改成http://localhost:8080/来访问首页
- tomcat配置,使用http://localhost:8080/来访问工程
- http://localhost:8080/hohode
- http://localhost:8080/hohode
- Tomcat 访问http://localhost:8080/ 404 无法访问本地管理首页
- http://localhost/myphpsite/index.php
- tomcat网站地址: http://localhost:8080改为http://localhost
- http://localhost:8080/ 打开 错误
- http://localhost:8080/不显示
- tomcat打不开http://localhost:8080
- 获取之前页面----http://localhost:8080/blog0.1/article!lookArticle.action?id=11
- http://localhost/
- Can't find the request for http://localhost:8080/****/****.do's Observer
- 刷新页面,获得刷新后页面的页数(http://localhost:8080/option/index.jsp?page=8)
- 解决新版阿里weex框架创建vue项目后打开http://localhost:8080/index.html空白
- solr6.0以上安装完,http://localhost:8080/solr/index.html,报404错
- http://localhost:8080/struts-blank/的流程
- http://localhost:8080/demo/user_index.jsp
- spring 获取对象方式
- MongoDB入门简介
- PKU1287裸的Kruskal算法低空飘过
- storyboard中用xib文件创建定制的UITableViewCell对象
- 批改ViewPager调用setCurrentItem时,滑屏的速度
- http://localhost:8080/main.do?action=index改成http://localhost:8080/来访问首页
- PyQt4参考指南---介绍
- Simple Exercises about Marco Definition (C)
- 热隔热隔热和热河热河热和
- set /p= 和 echo
- 级联递归使用@JsonIgnore
- 放大本地方白癜风别发多
- spring定时器的配置
- gcc 需要掌握的基本选项