Reputation: 849
How to do this with liferay in Spring controller?
if (bindingresult.hasErrors()) {
return "myJspName";
}
return "redirect:/somePage";
Upvotes: 0
Views: 1086
Reputation: 373
Assuming your code is in portlet action phase, you can redirect using the actionresponse object, for example:
actionResponse.sendRedirect("/somepage")
Upvotes: 2