Results 1 to 1 of 1
  1. #1
    svz
    svz is offline Member
    Join Date
    Apr 2011
    Posts
    1
    Rep Power
    0

    Default How to call a portlet method from within jsp?

    Hi, friends.
    I`ve come across the following problem:

    I`ve got a standard Spring MVC portlet: DispatcherPortlet, a viewController(extends AbstractController) and a view jsp page. On the jsp there is a jQuery jstree. What I need to do is load some data and append it to the tree as each node is opened. The data should be generated within the portlet (DAO -> process data -> return result).

    The question is the following: how do I call the portlet method that prepares the data and then pass the result to the jsp?

    I've tried to use ajax queries to the portlet itself, but what I got was the contents of index.jsp (where did that come from?). I also couldn`t configure the handler mapping to make it work right. Any help appreciated. Ah, one more thing: it is Java 1.4 and Spring 2.5
    Last edited by svz; 04-16-2011 at 05:36 PM. Reason: forgot to mention it's Spring framework

Similar Threads

  1. call a JSP method
    By sauravsinha in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 09-26-2011, 04:19 PM
  2. How to call this method?
    By Rockefella in forum New To Java
    Replies: 12
    Last Post: 01-20-2011, 04:32 PM
  3. Call a method every 5 minutes.
    By PhQ in forum New To Java
    Replies: 2
    Last Post: 03-31-2010, 03:31 AM
  4. how to call method?
    By leapinlizard in forum New To Java
    Replies: 9
    Last Post: 04-29-2009, 11:55 PM
  5. cannot call private method from static method
    By jon80 in forum New To Java
    Replies: 3
    Last Post: 05-07-2008, 08:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •