How struts2 works