struts 503错误

菜鸟达人 2012-04-28 01:10:23
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>

...全文
77 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
菜鸟达人 2012-04-28
  • 打赏
  • 举报
回复
我用的是struts1.2如果用struts1.3就没有了
但数据源不能加载
菜鸟达人 2012-04-28
  • 打赏
  • 举报
回复
错误就是这个啊!

2012-4-28 15:46:09 org.apache.catalina.core.ApplicationDispatcher invoke
警告: Servlet action is currently unavailable
yellowshine 2012-04-28
  • 打赏
  • 举报
回复
都什么年代了,还在使用struts1,

用就用了吧,还在其中配置数据源

-----------------------------------

还是回到问题上,把错误信息贴上来大家看看,

只是503难下手啊~~~
菜鸟达人 2012-04-28
  • 打赏
  • 举报
回复
2012-4-28 15:46:09 org.apache.catalina.core.ApplicationDispatcher invoke
警告: Servlet action is currently unavailable
a312983516 2012-04-28
  • 打赏
  • 举报
回复
帖错误信息 !
菜鸟达人 2012-04-28
  • 打赏
  • 举报
回复
有没有人啊?
菜鸟达人 2012-04-28
  • 打赏
  • 举报
回复
HTTP状态503 - Servlet的行动是当前不可用
菜鸟达人 2012-04-28
  • 打赏
  • 举报
回复
为什么不能跳的action中啊?

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧