在grails中控制器操作之间传递对象的最佳方式 [英] Best way to pass objects between controller actions in grails

查看:113
本文介绍了在grails中控制器操作之间传递对象的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个链接在我的webapp中打开另一个视图来显示有关指定对象的信息。
在控制器之间传递对象的最佳方式是在grail中的动作?

解决方案

动作可以使用<一个href =http://grails.org/doc/latest/ref/Controllers/chain.html =nofollow>链控制器方法。

链接允许模型从一个动作保留到下一个动作。


I want a link to open up another view in my webapp to display information about the specified object. What is the best way to pass objects between controllers actions in grail?

解决方案

Actions can be chained using the chain controller method.

Chaining allows the model to be retained from one action to the next.

这篇关于在grails中控制器操作之间传递对象的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆