且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从网址中删除扩展名

更新时间:2022-02-08 00:53:04

我找到了答案。我应该更改struts配置如下:

I've found the answer. I should change the struts configuration as following:

<struts>



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



    <package name="default" extends="struts-default">

        <action name="register">
            <result type="tiles">register</result>
        </action>
    </package>


</struts>