struts2初步-web.xml
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#999999 cellSpacing=0 cellPadding=0 width="95%" bgColor=#f1f1f1 border=1><TBODY>
<TR>
<TD>
<P style="MARGIN: 5px; LINE-HEIGHT: 150%"><CODE><SPAN style="COLOR: #000000"><SPAN style="COLOR: #0000cc"><</SPAN>filter<SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN>filter-name<SPAN style="COLOR: #0000cc">></SPAN>struts2<SPAN style="COLOR: #0000cc"><</SPAN><SPAN style="COLOR: #0000cc">/</SPAN>filter-name<SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN>filter-class<SPAN style="COLOR: #0000cc">></SPAN>org<SPAN style="COLOR: #0000cc">.</SPAN>apache<SPAN style="COLOR: #0000cc">.</SPAN>struts2<SPAN style="COLOR: #0000cc">.</SPAN>dispatcher<SPAN style="COLOR: #0000cc">.</SPAN>ng<SPAN style="COLOR: #0000cc">.</SPAN>filter<SPAN style="COLOR: #0000cc">.</SPAN>StrutsPrepareAndExecuteFilter<SPAN style="COLOR: #0000cc"><</SPAN><SPAN style="COLOR: #0000cc">/</SPAN>filter-class<SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN><SPAN style="COLOR: #0000cc">/</SPAN>filter<SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN>filter-mapping<SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN>filter-name<SPAN style="COLOR: #0000cc">></SPAN>struts2<SPAN style="COLOR: #0000cc"><</SPAN><SPAN style="COLOR: #0000cc">/</SPAN>filter-name<SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN>url-pattern<SPAN style="COLOR: #0000cc">></SPAN><SPAN style="COLOR: #0000cc">/</SPAN><SPAN style="COLOR: #0000cc">*</SPAN><SPAN style="COLOR: #0000cc"><</SPAN><SPAN style="COLOR: #0000cc">/</SPAN>url-pattern<SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN><SPAN style="COLOR: #0000cc">/</SPAN>filter-mapping<SPAN style="COLOR: #0000cc">></SPAN></SPAN></CODE></P></TD></TR></TBODY></TABLE><BR>struts2的高低版本之间所使用的class好像还有差别,这个要注意,我这个是struts-2.2.1.1版的配置,较低版本用其他的class,网上有很多,开始就是被那些低版本的文章误导的。
页:
[1]