placeholder logic added to servlet and html page