How the Code Works[struts2工作]
来源:互联网 发布:逆战朱雀宏数据 编辑:程序博客网 时间:2024/06/05 01:03
- The container receives from the web server a request for the resource
hello.action
. According to the settings loaded from the web.xml, the container finds that all requests are being routed toorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
, including the*.action
requests. The StrutsPrepareAndExecuteFilter is the entry point into the framework. - The framework looks for an action mapping named "hello", and it finds that this mapping corresponds to the class "HelloWorldAction". The framework instantiates the Action and calls the Action's
execute
method. - The
execute
method creates the MessageStore object and returnsSUCCESS
. The framework checks the action mapping to see what page to load ifSUCCESS
is returned. The framework tells the container to render as the response to the request, the resourceHelloWorld.jsp
. - As the page
HelloWorld.jsp
is being processed, the<s:property value="messageStore.message" />
tag calls the gettergetMessageStore
of theHelloWorld
Action and then calls thegetMessage
of the MessageStore object returned bygetMessageStore
, and the tag merges into the response the value of the message attribute. - A pure HTML response is sent back to the browser.
0 0
- How the Code Works[struts2工作]
- How The Computer Works
- How the Computer Works
- How the Internet works
- How the Web Works
- How JavaScript works: inside the V8 engine + 5 tips on how to write optimized code
- The Basics: How Programming Works
- How The Immediate Attribute Works
- How the Scientific Method Works
- How the PCI bus works
- How the ECDSA algorithm works
- How the buffer cache works
- How the Main Thread works
- How the backpropagation algorithm works
- BP反向传播算法是如何工作的How the backpropagation algorithm works
- [转]、How TCP IP works,How does the Internet Work,How the DNS works
- How the Linux Kernel initcall Mechanism Works
- How the web-tier compiler works
- C 语言取整的几种方法
- struts2重定向传参问题(转)
- hql左连接查询,注意属性的书写
- iOS开源项目汇总
- 源码安全管理的要求及软件工具的限制!
- How the Code Works[struts2工作]
- MySQL-SQL语句中SELECT语句的执行顺序
- 食物是最温暖的治愈
- 使用Git Submodule可能遇到的坑
- Spiral Matrix II (Java)
- bootstrap简易登陆页
- Android进度条ProgressBar使用详解
- Java通信编程中调用UDP协议与TCP协议之间的不同
- 如何把tabControl 的tabPage控件的标题不显示,只显示矩形框的内容