如何为Struts2执行过程中发生的每个错误设置单个错误页。我的错误页面如下。
error.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>HOME</title>
</head>
<body>
<center>
<h2 style="color: red;">Error Occurred during processing your Request...!!!!</h2>
</center>
<hr/>
</body>
</html>
发布于 2013-11-25 07:31:33
您需要全局异常配置。看看这
https://stackoverflow.com/questions/20186894
复制相似问题