I want to know how can I call a Java method or a Java class through AJAX 
ie xmlhttp.open("GET",url,true); what is the code that I should write in place of URL that it should call a specific Java method in which my query is written 
            Asked
            
        
        
            Active
            
        
            Viewed 116 times
        
    0
            
            
         
    
    
        Tiny
        
- 27,221
- 105
- 339
- 599
 
    
    
        user2626388
        
- 91
- 1
- 1
- 7
- 
                    3Map that url to a servlet. Put that code in servlet. Return from there. – Suresh Atta Jul 14 '14 at 18:30
- 
                    1[How to use Servlets and Ajax?](http://stackoverflow.com/a/4113258/1391249). It is about using JSON. – Tiny Jul 14 '14 at 18:34
- 
                    possible duplicate of [How to use Servlets and Ajax?](http://stackoverflow.com/questions/4112686/how-to-use-servlets-and-ajax) – Antti Haapala -- Слава Україні Jul 14 '14 at 18:50