OFBIZ程序中的三种XML控制文件

      ofbiz-component.xml文件,它可以告诉OFBIZ应用程序组件的相关信息:数据模型,商业逻辑,用户接口,种子数据,以及其他程序需要的资源。
    controller.xml告诉OFBIZ对于客户提出的各种请求如何应对。 Web.xml告诉OFBIZ这个web应用程序需要哪些资源,以及如何处理web相关的问题。(controller.xml tells OFBiz what to do with various requests from visitors: what actions to take and what pages to render. web.xml tells OFBiz what resources (database and business logic access) are available for this web application and how to handle web-related issues, such as welcome pages, redirects, and error pages.)
      

    The OFBiz controller allows you to specify:

    OFBIZ控制器允许你指定:

  • handlers, which are Java classes that handle either requests or produce views in various formats. For example, the handler for "java" events routes requests to a Java servlet, while the "service" handler routes requests to the service engine, automatically parsing visitor input into service input parameters. The various view requests produce output to the browser based on Freemarker templates, velocity, JSP, or the OFBiz screen widget.

Handlers(句柄),JAVA类,用于处理请求,或者以各种格式生成显示。例如,JAVA事件句柄将请求发送到一个java servlet,而服务句柄将请求发送到服务引擎,自动转换用户输入到服务的输入参数。各种显示请求根据freemarker模板,JSP或OFBIZ窗口小部件生成输出到浏览器的显示。

  • pre- and post-processors, which are servlets that are run before and after every web request.

   pre- and post-processors,是一些在每个web请求前后运行的servlet.

  • request mappings, which map URI requests to either request or view handlers. Request mappings can also re-direct to other request mappings, allowing requests to be chained together.

   request mappings,将URI请求映射到请求或显示句柄。请求映射也可以重定位到其他请求映射,允许请求相互连接。

view mappings, which generate output to the visitor by specifying where the page is located. By default, view mappings reference files starting from the current web application's directory, in this case, webapp/hello1/.

http://blog.sina.com.cn/u/4a4820f9010008gt

你可能感兴趣的:(java,xml,Web,freemarker,应用服务器)