struts code added.