I've begun to learn portlets and spring and have faced the following problem:
I`ve got a Spring-based MVC portlet. There is a controller registered for the VIEW mode that extends AbstractController and implements the handleRenderRequestInternal() method.
As you see, I am getting the data generated within the controller by using request.setAttribute() and then receiving it with a scriptlet in jsp.
As far as I get it, this is not the best way to provide interaction between the controller and the view.
I want to send ajax requests to the controller and get the response. What is the right way to do this?
How do I address the portlet and specify the method that sholud process my request? How do I receive the response?
When is handleRenderRequestInternal() called at all?
Probably, these questions sound stupid, but I couldn't find any good tutorials on Spring.
subject: Send/receive request from jsp to a Spring portlet.