• Post Reply Bookmark Topic Watch Topic
  • New Topic

Send/receive request from jsp to a Spring portlet.  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, friends!
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!