This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
If you're using Struts 2, it ships with some Ajax tags based on Dojo--but those tags have been deprecated for a few reasons and may never be updated to use a more recent version of Dojo. S2 is also getting a jQuery tag library, currently in the sandbox, but I don't know when it will be part of the official distribution.
AJAX framework just make your life easy, it dosen't matter to it whether the back end action is file, a servlet or Struts action class. As long as your response is valid, you can use simple XMLHttpRequest object using JS or use AJAX framework..
Now I have a doubt like if I am using a Struts Action class as the url for AJAX call as below
and in struts-config.xml,
then finally SampleActionClass.java
I really do not know what should I return here so that am not directing the page to any other page. Basically the result of the operation must be carried as response to the AJAX call as an XML. I dont want to navigate anywhere.
Please tell me what should I return in that function..