Struts2 - 配置文件详解

xml version="1.0" encoding="UTF-8" ?>
DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
    "http://struts.apache.org/dtds/struts-2.3.dtd">

<struts>

    
    <package name="helloWorld" extends="struts-default">
        
        
        <action name="product-input" class="com.opensymphony.xwork2.ActionSupport" method="execute">
            
            <result name="success" type="dispatcher">/WEB-INF/pages/input.jspresult>
        action>
        
        <action name="product-save" class="com.atguigu.struts2.helloworld.Product" method="save">
            <result name="details">/WEB-INF/pages/details.jspresult>    
        action>
        
        <action name="test" class="com.atguigu.struts2.helloworld.Product" method="test">
            <result>/index.jspresult>
        action>
        
    package>

struts>

 

转载于:https://www.cnblogs.com/pjlhf/p/8711157.html

你可能感兴趣的:(Struts2 - 配置文件详解)