Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DWR - Not returning search results

 
Ishu Saxena
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

Recently, I have been assigned to a new project that requires knowledge of DWR/AJAX. AJAX is something I've never worked on. So to get started with things, I am working on this small application to get a feel of how DWR works. Basically, I've created an input form that stores user details (firstname, lastname email etc.) in an object. I then create a serach form to search for and display the data using the first name.
However, I see that the search results are not populated at all.. Here's the code fragments .Would really appreciate any pointers

Web.xml


DWR.xml


Here's the page that displays search results;



Here is the findContact Method:

 
Ishu Saxena
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok..Here's an update.The callback method in contact,jsp was being called with an incorrect name..

ContactDAO.findContact(filltable,firstname);
instead of

ContactDAO.findContact(fillTable,firstname);

I have alert statements after each line in the method..The call to 'ContactDAO.findContact(fillTable,firstname);' alerts with 'Error'. Also, running the program in debug mode, does not take the control to the findContact() method.So I am assuming that the method is not called at all...

Would appreciate any inputs..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic