⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 struts-config.xml~18~

📁 struts教学程序,使用了struts,hibernate等相关技术,做简单的出入库操作
💻 XML~18~
字号:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
  <form-beans>
    <form-bean name="productForm" type="strutsfinal.ProductForm" />
  </form-beans>
  <action-mappings>
    <action name="productForm" parameter="command" path="/index" type="strutsfinal.DefaultAction" unknown="true">
      <forward name="index" path="/productlist.jsp" />
      <forward name="addfailure" path="/addproduct.jsp">
      </forward>
    </action>
    <action input="/addproduct.jsp" name="productForm" path="/addAction" scope="request" type="strutsfinal.AddAction" validate="true">
      <forward name="success" path="/productlist.jsp" redirect="true" />
      <forward name="failure" path="/addproduct.jsp" />
    </action>
    <action path="/default" type="strutsfinal.GatewayAction">
      <forward name="forward" path="/productlist.jsp" />
    </action>
  </action-mappings>
  <message-resources parameter="ApplicationResources" />
  <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
  </plug-in>
  <plug-in className="org.apache.struts.tiles.TilesPlugin">
    <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
  </plug-in>
</struts-config>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -