aspose file tools*
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 Java 8 in Action this week in the Java 8 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
Author

Send/receive request from jsp to a Spring portlet.

Serghei Zag
Greenhorn

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: http://aspose.com/file-tools
 
subject: Send/receive request from jsp to a Spring portlet.
 
Similar Threads
Inter Controller communication in Spring Framework
Spring - passing values by parametrs to Controller
Spring MVC problem
Linking JSP pages in portlet application
Undefined on jQuery Ajax Request