2024年3月18日发(作者:)

一、第一个异常处理

严重: e() for servlet jsp threw exception

The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the

associated filter. Struts tags are only usable when the request has passed through its servlet filter,

which initializes the Struts dispatcher needed for this tag. - [unknown location]

at ck(:60)

at

ck(:44)

at

tTag(:48)

at

_005fstruts2_uery_jsp._jspx_meth_s_005fdebug_005f0(Ypxxb

Query_:108)

at

_005fstruts2_uery_jsp._jspService(YpxxbQuery_:83)

解决的办法:(4种解决方案)

1.

中添加一个filter

struts2

*.jsp

struts2

/action/*

2.

struts2

/*