adding second function -- html servlet function. Huan