JAVA--struts2配置
1 <filter> 2 <filter-name> struts2</filter-name > 3 < filter-class> 4 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter 5 </filter-class> 6 </filter > 7 8 <filter-mapping > 9 <filter-name >struts2</ filter-name> 10 <url-pattern >/*</ url-pattern> 11 </filter-mapping >
1 <?xml version="1.0" encoding= "UTF-8" ?> 2 <!DOCTYPE struts PUBLIC 3 "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" 4 "http://struts.apache.org/dtds/struts-2.3.dtd" > 5 6 <struts> 7 8 <package name="default" namespace="/" extends="struts-default"> 9 10 <action name="login" class = "com.test.action.testBufferFileReader" > 11 <result name = "success" >/pages/100/130.jsp</result > 12 </action> 13 </package > 14 15 </struts>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。