日期:2014-05-19  浏览次数:20680 次

struts 503错误
struts-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource"
key="dataSources">
<set-property property="driverClassName" value="org.gjt.mm.mysql.Driver" />
<set-property property="url"
value="jdbc:mysql://localhost:3306/db_bbs" />
<set-property value="20" property="maxCount" />
<set-property value="1" property="minCount" />
<set-property property="username" value="root" />
<set-property property="password" value="1234" />
</data-source>
</data-sources>
<form-beans >
  <form-bean name="indexActionForm" type="com.hang.struts.form.IndexActionForm" />

</form-beans>

<global-exceptions />
<global-forwards />


<action-mappings>
<action path="/index" 
type="com.hang.struts.action.IndexAction"
input="/index2.jsp">

</action>
<action path="/index1" 
type="com.hang.struts.action.IndexAction1"
input="/index2.jsp">

</action>
   
</action-mappings>

<message-resources parameter="com.hang.struts.ApplicationResources_zh_CN" />

</struts-config>

index.jsp
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
 <title>论坛首页</title>

  </head>
  
  <body>
  <jsp:forward page="index1.do"></jsp:forward>
  </body>
</html>



------解决方案--------------------
帖错误信息 !