Struts 2 < include > element: contains other configuration files

Syntax:


…….. < include file="file"/>

Example

<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
"http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
  <include file="user.xml"/>
  <include file="book.xml"/>
  <include file="manager.xml"/>
  <include file="/util/pojo.xml"/>
  <include file="/com/lyq/admin/admin.xml"/>
</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
分享
二维码
< <上一篇
下一篇>>