• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Send/receive request from jsp to a Spring portlet.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic