1. 程式人生 > >JSP The Struts dispatcher cannot be found異常的解決方法

JSP The Struts dispatcher cannot be found異常的解決方法

<%@ taglib uri="/struts-tags" prefix="s" %>報錯:

This is usually caused by using Struts tagswithout the associated filter. Struts tags are only usable when the request haspassed through its servlet filter, which initializes the Struts dispatcherneeded for this tag. - [unknown location]


意思是必須要經過struts監聽器的頁面才能使用struts的標籤,所以如果web.xml中配置的*.action無法捕捉jsp就會報錯