因为在处理这个视图之前无需任何业务逻辑,所以我们只需直接调用添加联系人 JSP(把它配置成全局转发而不是操作)。
Since there is no business logic needed prior to rendering this view, we will simply invoke the Add Contact JSP directly, configuring it as a global forward instead of as an action.
只有事件处理程序完成了其业务逻辑后,它才会更新全局变量result,以将结果返回到MainScope。
Only when the event handler has finished its business logic, it updates the global variable result in order to return the result to MainScope.
它利用Blueprint容器的功能来管理持久性上下文和全局事务,以确保业务逻辑的开发和单元测试尽可能保持简单。
It leverages the Blueprint container's ability to manage both persistence contexts and global transactions to ensure the business logic remains as simple as possible to develop and unit test.
应用推荐