开发者

How to do a page redirect in lift

I have the need to be able to redirect the current page request to a news page url.

Based on the params of the incoming request I retrieve data from the database and in case nothing is found I redirect the user to another page.

This is very easy to do in MVC but due to my inexperience with the view-f开发者_StackOverflow中文版irst paradigm it is not very clear what the best way to do this is.

Kind regards,

Jaron


Do you require anything else than?

S.redirectTo(url)


have you tried method RedirectTo of object JsCmds? [doc of this here]

It is javascript-based redirect, which is using location.href call, but it could help you.

good luck

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜