user17651
user17651

Reputation: 45

EXTJS ajax request

in extjs, i am trying to make the save button to do the following when clicked. people.java is the controller.

   var letssay = function() {
     Ext.Ajax.request({
        url : 'people.java',
        method: 'POST',                   
        params :{'firstname': firstname},       
        success: function ( result, request ) {

What I do is make function letssay and call it under button. But it doesn't respond correctly. What am I doing wrong here?

  buttons: [{
        text: 'Save',
           handler: function(){
            letssay();

Upvotes: 1

Views: 464

Answers (1)

dbrin
dbrin

Reputation: 15673

Java classes need to be compiled and served via an app server like Tomcat or Jetty.

Upvotes: 1

Related Questions