Struts2.5动态方法调用struts.xml的配置

通过格式:actionName!methodName.action

"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
"http://struts.apache.org/dtds/struts-2.5.dtd">





success.jsp
error.jsp
success.jsp
doit


通过指定方法:

"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
"http://struts.apache.org/dtds/struts-2.5.dtd">



${pageContext.request.contextPath}/success.jsp

${pageContext.request.contextPath}/method/deal.jsp

deal

method="edit">
${pageContext.request.contextPath}/method/edit.jsp



你可能感兴趣的:(Struts2.5动态方法调用struts.xml的配置)