File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes Send/receive request from jsp to a Spring portlet. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Send/receive request from jsp to a Spring portlet." Watch "Send/receive request from jsp to a Spring portlet." New topic

Send/receive request from jsp to a Spring portlet.

Serghei Zag

Joined: Apr 12, 2011
Posts: 1
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.
I agree. Here's the link:
subject: Send/receive request from jsp to a Spring portlet.
Similar Threads
Spring MVC problem
Inter Controller communication in Spring Framework
Linking JSP pages in portlet application
Spring - passing values by parametrs to Controller
Undefined on jQuery Ajax Request