Struts 2 环境
Struts 2 环境 下载类库:http://192.168.16.240/source/struts-2.0.11.1-lib.zip
完整类库列表 antlr-2.7.2.jar commons-beanutils-1.6.jar commons-chain-1.1.jar commons-logging-1.0.4.jar commons-logging-api-1.1.jar commons-validator-1.3.0.jar freemarker-2.3.8.jar ognl-2.6.11.jar oro-2.0.8.jar struts-core-1.3.5.jar struts2-codebehind-plugin-2.0.11.1.jar struts2-config-browser-plugin-2.0.11.1.jar struts2-core-2.0.11.1.jar struts2-jasperreports-plugin-2.0.11.1.jar struts2-jfreechart-plugin-2.0.11.1.jar struts2-jsf-plugin-2.0.11.1.jar struts2-pell-multipart-plugin-2.0.11.1.jar struts2-plexus-plugin-2.0.11.1.jar struts2-sitegraph-plugin-2.0.11.1.jar struts2-sitemesh-plugin-2.0.11.1.jar struts2-spring-plugin-2.0.11.1.jar struts2-struts1-plugin-2.0.11.1.jar struts2-tiles-plugin-2.0.11.1.jar tiles-api-2.0.4.jar tiles-core-2.0.4.jar tiles-jsp-2.0.4.jar xwork-2.0.4.jar 基础类库列表 commons-logging-1.0.4.jar freemarker-2.3.8.jar ognl-2.6.11.jar struts2-core-2.0.11.jar xwork-2.0.4.jar 基础配置 WEB.XML struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 /* Struts.xml
package struts对配置的组织结构 类似于java package 属性: * name : 包的名字,唯一标示 extends: 继承 namespace:命名空间 abstract: 抽象申明 namespace 1 default namespace "" 2 root namespace "/" 3 action 搜索的顺序 当前namespace ---一级一级向上搜索 Web应用的请求路径被视为namespace 4 访问 /aaa.action的时候的搜索的顺序 "/" ---> "" 5 namespace 没有目录信息 6 package 包含0 - N 个 action