今天有个难题,被我解决啦。详细的问题我就不多说了,用到的技术就是struts动态返回结果,让结果可配置
action************
private String nextAction=SystemParams.NEWEDITION;
public String getNextAction() {
return nextAction;
}
public void setNextAction(String nextAction) {
this.nextAction = nextAction;
}
其中SystemParams.NEWEDITION是通过配置文件读到的数据
public String openUrl(){
return SUCCESS;
}
struts.xml***********************
<action name="openUrl" class="songAction" method="openUrl">
<result name="success" type="redirect">${nextAction}</result>
</action>
${nextAction}这个值就是通过文件动态读到的值。