this is my index.jsp containing extjs code

<script type="text/javascript">
Ext.onReady(function(){
Ext.QuickTips.init();
var login = new Ext.FormPanel({
url:'HelloWeb/addStudent.htm',

items:[{
fieldLabel:'Name',
name:'Name',
allowBlank:false
},{
fieldLabel:'age',
name:'age',
allowBlank:false
},{
fieldLabel:'id',
name:'id',
allowBlank:false
}],
buttons:[{
text:'Submit',
formBind: true,

handler:function(){
login.getForm().submit({
method:'POST'
});
login.render(document.body);
}
}]
});

this is my spring controller

@RequestMapping(value = "/addStudent", method = RequestMethod.POST)

public String addStudent(@ModelAttribute("SpringWeb")Student student,
ModelMap model) {
model.addAttribute("name", student.getName());
model.addAttribute("age", student.getAge());
model.addAttribute("id", student.getId());

return "result";
}