当我将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 {
}