I’m trying to work out why below exception is thrown.
I think it is because a portlet was accessed in ‘view’ mode but for a reason I do not know the spring servlet container was unable to serve the request, is this correct ?
Where are the ‘parameters map’ in below exception set ?
org.springframework.web.portlet.NoHandlerFoundException: No matching
handler method found for portlet request: mode ‘view’, phase
‘ACTION_PHASE’, parameters map[empty]
Here is the controller :
@Controller
@RequestMapping("VIEW")
public class DetailsController {
@RequestMapping("VIEW")
public String showDetails(final ModelMap modelMap, final RenderRequest renderRequest) {
return "allDetails/details";
}
}
Here are 3 ideas I can come up with (knowing how your controller is called would help).
Try one of them, or a mix of them, and tell me if it worked.
Idea 1 : Remove
("VIEW")for the showDetails @RequestMapping annotation.This could work if your calling JSP has something like this :
<portlet:actionURL/>: showDetails would be the default render method.Idea 2 : Specify the action parameter for your @RequestMapping method annotation.
This could work if your calling JSP has something like this :
Idea 3 : Add an empty method for the action phase.
This could work if your calling JSP has something like this :