 |
Article:
 |
 |
Ajax Form Validation Using Spring and DWR, Revised
|
| Subject: |
getbean failed. |
| Date: |
2007-12-19 12:55:51 |
| From: |
sammi2008 |
|
|

|
I followed your solution and faced a problem. After downloading the sample code here.
1) configure my web.xml to add a new dwrServlet;
2) add Annotation configuration to my AjaxFormValidator.java file.
3) add a common javascript file ajaxClient.js, I add the necessary external files in my jsp file. include /dwr/engin.js,/dwr/util.js and /dwr/interface/AjaxFormValidationJS.js and the common ajaxClient.js
4) add bean difinition in applicaitonContext.xml of AjaxFormValidatior.
I tested the remote testing method by a sayHello method, everything is OK. but when I use the real validate method, It told me getbean failed.
I debug for a long time, have few ideas about applicationContext.getBean() faied. I tried to find more threads by dig information about DispatchServlet processing pipeline, focus on how to load applicationContext.xml and dispatch-servlet.xml and use the bean configuration info, but haven't find the exact solution about the problem.
Any thread or suggestion is appreciated. |
|