取得當前被調用的action的config對象 ActionConfig actionConfig = ActionContext.getContext() .getActionInvocation().getProxy().getConfig(); 使用maven 创建struts2初始web工程 mvn archetype:create -DgroupId=org.sbbs -DartifactId=struts2Tutorial -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter -DarchetypeVersion=2.0.11.2