把strtus2里*.action换成*.do的方法

在struts1里默认的action处理后缀是*.do,而在struts2里默认的是*.action

 

在struts.xml中加入

<constant name="struts.action.extension" value="do" />

 

或者在struts.properties中加入

struts.action.extension=do

 

便可以使struts2里所有的action处理后缀变为*.do,当然换成其他的也行。

 

 

你可能感兴趣的:(xml,struts)