I have two portlets say portlet1 and portlet2. I have a controller defined portlet1 as
@ResourceMapping("getForm")
@ResponseBody
public ModelAndView getForm(ResourceRequest request,ResourceResponse response) {
.....
}
Now I want to call this controller from portlet2. is there any way that I can achieve this? Let me tell you that both the portlets are not on the same page.