0

如何在 Spring 控制器中使用 liferay 执行此操作?

    if (bindingresult.hasErrors()) {
        return "myJspName";
    }
    return "redirect:/somePage";
4

1 回答 1

2

Assuming your code is in portlet action phase, you can redirect using the actionresponse object, for example:

actionResponse.sendRedirect("/somepage")
于 2012-09-11T20:32:56.117 回答