This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have a JSP which is to be modified (by means of its content ) for different action using AJAX. I am very much happy in doping this using AJAX.
But the issue is that, How to get a value of a variable from a action class to my AJAX function. I want to set a value in struts action class and get back at the same time i put the response in JSP using AJAX.
Ajax is used to make the request Asynchronously from Client side to Server Side, and your requirement is Sending the data from Server side to Client side Asynchronously, so Ajax is not compatible for this scenario, Use comet programming solve your problem