http://localhost:8080/struts-blank/的流程
来源:互联网 发布:mac系统玩lol国服 编辑:程序博客网 时间:2024/05/22 15:41
1。web.xml定义默认页面
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
2。index.jsp重定向
<logic:redirect forward="welcome"/>
3。struts-config.xml
1)先从全局转向定义小节找到名为welcome的forward
<global-forwards>
<!-- Default forward to "Welcome" action -->
<!-- Demonstrates using index.jsp to forward -->
<forward
name="welcome"
path="/Welcome.do"/>
</global-forwards>
2)再到动作定义小节找到名为Welcome的action
<action
path="/Welcome"
forward="/pages/Welcome.jsp"/>
4。浏览器显示Welcome.jsp的内容,从/WEB-INF/classes/MessageResources.properties中读取所需信息并显示。struts-config.xml的Message Resources Definitions部分定义了这个文件名(不含扩展名)
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
2。index.jsp重定向
<logic:redirect forward="welcome"/>
3。struts-config.xml
1)先从全局转向定义小节找到名为welcome的forward
<global-forwards>
<!-- Default forward to "Welcome" action -->
<!-- Demonstrates using index.jsp to forward -->
<forward
name="welcome"
path="/Welcome.do"/>
</global-forwards>
2)再到动作定义小节找到名为Welcome的action
<action
path="/Welcome"
forward="/pages/Welcome.jsp"/>
4。浏览器显示Welcome.jsp的内容,从/WEB-INF/classes/MessageResources.properties中读取所需信息并显示。struts-config.xml的Message Resources Definitions部分定义了这个文件名(不含扩展名)
- http://localhost:8080/struts-blank/的流程
- struts-blank
- 不能找到http://localhost:8080的问题
- http://localhost:8080/ 显示Oracle的说明
- http://localhost:8080/hohode
- http://localhost:8080/hohode
- 第一个做成的struts(http://localhost:8088/StrutsTutorial/helloworld/HelloWorld.action)
- 初学STRUTS —— 从struts-blank的简单流转开始学习(1)
- 初学STRUTS —— 从struts-blank的简单流转开始学习(2)
- 解决tomcat的http://localhost:8080/无法访问的情况
- tomcat网站地址: http://localhost:8080改为http://localhost
- http://localhost:8080/ 打开 错误
- http://localhost:8080/不显示
- tomcat打不开http://localhost:8080
- 如何得到项目的地址,如:http://localhost:8080/HR
- 启动tomcat无法访问http://localhost:8080/的解决方案
- 找不到位于 http://localhost:8080 的 Web 应用程序
- http://localhost:8080打不开的一种可能解决方法
- 不怕崩溃 Ghost令机房管理化繁为简
- 存储过程分页的好的例子
- tomcat 5简明启动手册
- 初学编程之必备内功(上)
- 很搞笑,今天才弄清楚什么是二级域名和三级域名的区别
- http://localhost:8080/struts-blank/的流程
- 架构设计的思考
- 用JBuilder2005开发Web应用
- 求助关于彩信平台系统的问题
- 开栏
- 自动预览上传图片
- 整理机器时发现,偶在以前参与的一些贴子!特此放上来!
- 端口功能对照表
- .NET中的xpath 选择自 Uncommon 的 Blog