Adding servlet code