让我们用状态行显示在表视图中选中了多少项。
Let's use the status line to display how many items we have selected in the table view.
在第5行我们创建了一个ActionMessages实例来保存状态信息,而在第12 -14行和17 -19行我们将ActionMessages保存到了request中,这样它们就可以在视图中被渲染。
In line 5 we create an ActionMessages instance to hold a status message, and in lines 12 — 14 and 17 — 19 we save the ActionMessages into the request so they can be rendered in the view.
在第5行我们创建了一个ActionMessages实例来保存状态信息,而在第12 -14行和17 -19行我们将ActionMessages保存到了request中,这样它们就可以在视图中被渲染。
In line 5 we create an ActionMessages instance to hold a status message, and in lines 12 — 14 and 17 — 19 we save the ActionMessages into the request so they can be rendered in the view.
应用推荐