Struts 2 basic configuration file

<struts>
  <!—设置常量的值-->
  <constant name="name" value="value"></constant>
  ……
  <bean class="url" name="name"/>
  <bean type="value" name="name" class="url"/>
  <!--声明包-->
  <package name="name" extends="struts-default" namespace="name">
    <global-results>
      <result name="name">url</result>
    </global-results>
    <action name="name" class="url" method="name">
      <result>url</result>
    </action>
  </package>
  <include file="file"/>
  ……
  <include file="file"/>
</struts>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>