File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes DWR - Not returning search results Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "DWR - Not returning search results" Watch "DWR - Not returning search results" New topic
Author

DWR - Not returning search results

Ishu Saxena
Greenhorn

Joined: Jun 24, 2008
Posts: 25
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:



--<br />SCJP 5.0
Ishu Saxena
Greenhorn

Joined: Jun 24, 2008
Posts: 25
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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DWR - Not returning search results