在struts框架应用初学中,要通过struts-config.xml跳转时,有时候会产生这样的报错:
HTTP Status 503 - Servlet action is currently unavailable
type Status report
message Servlet action is currently unavailable
description The requested service (Servlet action is currently unavailable) is not currently available.
产生原因:很多人在WEB-INF/lib/下面只添加了struts.jar包(网上很多struts入门实例中只提到struts.jar包)。
解决办法:把commons-beanutils.jar、commons-digester.jar等添加到WEB-INF/lib/下面,就可以正常跳转了。
Struts框架跳转错误解决
本文介绍了一个常见的Struts框架应用错误“Servlet action is currently unavailable”,解释了产生该错误的原因在于只添加了struts.jar包而未包含其他必要jar文件,并提供了具体的解决方案。
2019





