Pattern Recognition project on servlet