change all codes into struts style.