The thinking of struts2 namspace
来源:互联网 发布:starstail for mac 编辑:程序博客网 时间:2024/06/11 10:17
In the lastduring, I am studying the basic about struts2.
At be ginning,I always am confused by the namespace of struts2 xml configuration file.
Cause, sometimes I shall read some examplesthat have namespace in configuration file but no the namespace in action of JSP.
However, the definition of namespace is a path tofind action. Therefore, I feel it is strange why JSP has no namespace ratherstruts xml could have?
Think in a second, then I read references some,finally, I could think me to be a little clear about the namespace. Cause thenamespace has another function that is to recognize same name action in oneproject.
In the while, the request sends a order to action,and must have a action receive the order and to execute it. In the time, whocould receive this order? It will be judged by the namespace. The method that findsthe action in the struts xml file is to use relative path ,that is afterrequest’s current path is followed by namespace and action name.
Take one example, a commanding officer will give aorder to A, concurrently, it has each an A in NO.1 troop and NO.2 troop. So thiscommanding officer could give the order, if he is in any a troop. If he were inown office, he would have specific troop’s A.
At now, struts2 also is same with the commander. Whenit give a order to a result in same package, JSP could omit the namespace. But whenthis result cannot exist in same package, JSP’s action would not have to omitnamespace. Otherwise, the server would throw a wrong that could not find pathof action.
- The thinking of struts2 namspace
- The tools of thinking
- the thinking of coding
- namspace
- Thinking of ...
- 11 Laws of The System Thinking in Software Development
- Book Review: The 5 Elements of Effective Thinking
- philosophy: the thinking of coding,and mood essay
- the thinking and solving of local storage problem
- the thinking use of DOM in my project
- thinking of memcpy()
- About Thinking of Designing
- Thinking of Design patterns
- Thinking of Internet
- THINKING OF DEATH
- the thinking,,,damn it
- Snandy Stop, thinking is the essence of progress. RequireJS入门(二)
- 每个人都有自己的梦想,I have a dream.Thinking After The Ring Of The Nibelungs
- Android NDK编程(一) Windows下环境配置
- leetcode:3Sum
- 外网访问控制网络备忘
- github for windows 安装失败—解决
- 快速判断正整数是否为某个数的幂
- The thinking of struts2 namspace
- 隐马尔可夫(HMM)
- <mvc:view-controller path="" view-name=""/>这个的具体使用
- C 语言程序设计实践 5.5 求约数个数
- 外观模式(facade)C#
- 设计模式之策略模式
- XSS跨站脚本攻击(二)
- C 语言程序设计实践 5.6 好吃的苹果
- CountingDigits projecteuler156题