Listing 1 and Listing 2 illustrate a typical Struts action and a typical Rails action, respectively.
清单1和清单2分别演示了典型的Struts动作和典型的Rails动作。
This allows avoidance of complex coding in the action class (as shown in the Struts 1 example) for converting the form bean in to the related domain model object.
这避免了在操作类中进行复杂编码(如struts 1示例所示),将表单bean转换为相关域模型对象。
Listing 1 shows an example of a Struts Action that blurs the line between model and controller.
清单1显示了一个Struts Action的例子,这个例子模糊了模型层和控制器层之间的界线。
Listing 1 shows an example of a Struts Action that blurs the line between model and controller.
清单1显示了一个Struts Action的例子,这个例子模糊了模型层和控制器层之间的界线。
应用推荐