respond to http request with json object in portlet
Well, one thing to notice, that the doView() is mostly responsible for rendering of your portlet. Your requirement can better achieved by 1 – processAction(Portlet Action) or 2 – serveResource(Portlet AJAX service). To my view, AJAX request-response will be the most suitable case; for that you just need to create a resource URL on your … Read more