String ip=org.apache.struts2.ServletActionContext.getRequest().getRemoteAddr();System.out.print("访问的ip地址"+ip);