Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Spring 控制器中使用 liferay 执行此操作?
if (bindingresult.hasErrors()) { return "myJspName"; } return "redirect:/somePage";
Assuming your code is in portlet action phase, you can redirect using the actionresponse object, for example:
actionResponse.sendRedirect("/somepage")