thanks i understand and kindly give me the sample code for java & web apps