Portlets can support different modes ( VIEW , EDIT and HELP by default, if I remember correctly).
<portlet-mode>VIEW</portlet-mode> in portlet.xml says that the portlet supports VIEW mode.
@Controller @RequestMapping("VIEW") public class myContoller extends AbstractController
simply limits the requests processed by @RequestMapping annotated methods of this controller to those sent in VIEW mode.
source share