I have a controller s method which renders a template. This works fine to render the template within my .gsp view.
我也正在使用邮递插图,我谨利用同样的控制器功能,通过电子邮件使模板成为模板,从而把一些电子邮件寄给它。
I know how to do that from a .gsp view via Ajax request but do not know any way to do that from within a controller or a service. The idea would be to use my controller s action more like a function, take the rendered teplate and populate my email with it. Also, my controller s action needs to have some params properties to work properly.
任何建议都受到欢迎。
关于