Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

not able to pass request parameters when the JSON call is made from Open portal

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSON Portlets Java AJax Jquery getJSON serveResource JSR286 portlet:resourceURL portlet.xml GenericPortlet


1. Requirement:-
The requirement is to fire an AJAX call when the user mouse over a div section .A dynamic Id value has to be passed as a request parameters .

2. How we are doing it?
The mouseover event of the div section is bound to a JQUERY function. This JQUERY method fires an AJAX request using the “getJSON” method. The JSON url is a resource handler request.
We have written a class which extends GenericPortlet to serve this request(JSR286 Spec). We have overridden serveResource method.But the AJAX call is not reaching the resource handler method.

We are using <portlet:resourceURL> to generate the resource URL.

Can you please tell me the configurations(web.xml, portlet.xml) involved in using a resource handler portlet class.

We are using Open portal server on Weblogic.



 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic