Configuration Elements

 A web application uses a deployment descriptor to initialize resources like servlets and taglibs. (web应用程序使用部署描述符来初始化资源,想servlets和标签库)The deployment descriptor is formatted as a XML document and named web.xml.(部署描述符是xml格式的,这个xml文件命名为web.xml)

Likewise, the framework uses a configuration file to initialize its own resources. These resources include:(同样的,这个框架也是使用配置文件去初始化它自己的资源,这些资源包括:)
 
Interceptors that can preprocess and postprocess a request(拦截器,可以进行预处理和后处理请求)
Action classes that can call business logic and data access code(Action类,可以调用业务逻辑和数据访问代码)
Results that can prepare views, like JavaServer Pages and FreeMarker templates(Result,可以准备界面,比如jsp和FreeMarker模板)
 
At runtime, there is a single configuration for an application. (在运行的时候,只有一个配置文件提供给应用程序)Prior to runtime, the configuration is defined through one or more XML documents, including the default struts.xml document. (运行之前,这些配置是定义在一个或多个文档中的,包括默认的struts.xml文档。)There are several elements that can be configured, including packages, namespaces, includes,actions,results,interceptors, and exceptions.(几个元素是可以被配置的,包括packages, namespaces, includes,actions,results,interceptors, and exceptions)

 

你可能感兴趣的:(struts,文档)