int main(){
int a=5,b=10;
printf("\na= %d b= %d",a,b);

I am working on a project on online e-commerce website.My requirement is that when a user clicks on "Add to cart" option some queries will be sent to the database and no redirection will take place.how to do this using jsp.(I don't know javascript).