This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i want to use AJAX in my web application. at present i am using free marker, webwork,spring and hibernate together. i found various example of using AJAX with other technologies. what i wan to know is that what changes should i make in my xwork.xml so that i can handle ajax request. i also want to know how should i send response from my Action to AJAX request. i know how to use AJAX with simple servlet doget, dopost methods. but if any body can help me or show me simple example to use it with web work than it will be great. thanks in advance. Vikas
what i wan to know is that what changes should i make in my xwork.xml so that i can handle ajax request
You don't have to do anything special at all, just define your action as usual.
i know how to use AJAX with simple servlet doget, dopost methods. but if any body can help me or show me simple example to use it with web work than it will be great.
With WebWork, there is no difference at all. All what you can do with raw Servlets you can do with WebWork action.
Joined: Nov 06, 2005
but the problem is after the action runs, and it maps to : <action name="admission" class="frontPageAction" method="aboutUs"> <result name="success" type="freemarker"> <param name="location">/template/home/content/Admission.ftl</param> </result> </action>
parameter as defined in my result. it reloads the page. i think do i need to use simple servlet dopost methods or doget methods where i dont return any thing. then it will work. because when we return Success in my execute method it maps to the param that i have defined. i my Xwork. so is there any other way i can do this