开发者

how to call other action in play framework

开发者 https://www.devze.com 2023-01-28 10:23 出处:网络
def a = { b } def b = { logger.deb开发者_JS百科ug(\"call ok\") Template } When I call method a I see the logger output (so b is called), but it returns the template of a. Why? I want it to return te
def a = {
  b
}
def b = {
  logger.deb开发者_JS百科ug("call ok")
  Template
}

When I call method a I see the logger output (so b is called), but it returns the template of a. Why? I want it to return template of method b


by Template you mean a "render" command? If so, it should work. If not, please edit the question and post the exact code.

0

精彩评论

暂无评论...
验证码 换一张
取 消