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>

解决方案 »

  1.   

    HTTP状态503 - Servlet的行动是当前不可用
      

  2.   

    2012-4-28 15:46:09 org.apache.catalina.core.ApplicationDispatcher invoke
    警告: Servlet action is currently unavailable
      

  3.   

    都什么年代了,还在使用struts1,用就用了吧,还在其中配置数据源-----------------------------------还是回到问题上,把错误信息贴上来大家看看,只是503难下手啊~~~
      

  4.   

    错误就是这个啊!2012-4-28 15:46:09 org.apache.catalina.core.ApplicationDispatcher invoke
    警告: Servlet action is currently unavailable
      

  5.   

    我用的是struts1.2如果用struts1.3就没有了
    但数据源不能加载