When sitemesh is used in struts, the following error occurs: "The struts dispatcher not found". I do not know how to configure it. Later, I found that the following configuration should be changed from struts2.1.3 before integration, otherwise, the struts2 tag cannot be used on the decorator page or the decored page.
< Filter > < Filter-name > Strutspreparefilter </ Filter-name > < Filter-class > Org. Apache. struts2.dispatcher. Ng. Filter. strutspreparefilter</ Filter-class > </ Filter > < Filter > < Filter-name > Sitemesh </ Filter-name > < Filter-class > Com. opensymphony. Module. sitemesh. Filter. pagefilter </ Filter-class > </ Filter > < Filter > < Filter-name > Strutsexecutefilter </ Filter-name > < Filter-class > Org. Apache. struts2.dispatcher. Ng. Filter. strutsexecutefilter </ Filter-class > </ Filter > < Filter-Mapping > < Filter-name > Strutspreparefilter </ Filter-name > < URL-Pattern > /* </ URL-Pattern > </ Filter-Mapping > < Filter-Mapping > < Filter-name > Sitemesh </ Filter-name > < URL-Pattern > /* </ URL-Pattern > </ Filter-Mapping > < Filter-Mapping > < Filter-name > Strutsexecutefilter </ Filter-name > < URL-Pattern > /* </ URL-Pattern > </ Filter-Mapping >
Recommended:Online e-books you may need
Agile individual Sina apron:Http://q.t.sina.com.cn/135484
You are welcome to reprint it. Please note: Reprinted fromAgile personal website