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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值