Struts Action Form扩展名不会自动添加

时间:2019-05-21 11:57:46

标签: struts struts-1

当我将struts配置从web.xml移到Java时。然后html:form无法添加扩展名

实际的jsp页面行

<html:form action="/transactionStatus" styleId="transForm">

之前

<form name="transactionStatusBean" method="post" action="/online-payments/transactionStatus.do" id="transForm">

之后

<form name="transactionStatusBean" method="post" action="/online-payments/transactionStatus" id="transForm">

不知道我在做什么错。这是下面的代码

        @WebServlet(urlPatterns="*.do",
                    loadOnStartup=2,
                    initParams = {@WebInitParam( name="config", value="/WEB-INF/struts-config.xml") ,
                        @WebInitParam( name="debug", value="2"),
                            @WebInitParam( name="detail", value="2"),
                            @WebInitParam( name="validate", value="true"),
                            @WebInitParam( name="chainConfig", value="org/apache/struts/tiles/chain-config.xml")
                    }
        )
        public class BootActionServlet extends ActionServlet {

        }

0 个答案:

没有答案