@krati_garg yes, the earlier which i was talking about was a path type, the one which i send it to you is the default servlet.i just want to know that for resource type also we need to call it through ajax?if yes, then for default also Ajax must be called somewhere i tried to find out but didn't get...