How can I influence the redirect behavior in a play-controller?

前端 未结 1 2071
夕颜
夕颜 2020-12-16 16:23

In play you always follow the Redirect-After-Post-Pattern if you call from a public-method of a controller. This is in most cases a good behavior, but sometime it could be n

1条回答
  •  醉梦人生
    2020-12-16 16:48

    For what I know you assumptions are correct.

    That said, for what I understand you want a method that ends after execution and returns nothing? Don't add any "render" call at the end (or any call to another method) and that should work. I use it for cron jobs.

    0 讨论(0)
提交回复
热议问题