HTTP ERROR: 200

a286133335 2009-08-06 06:44:13
HTTP ERROR: 200
OK
RequestURI=/struts_helloworld/
代码:
struts2框架

web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
struts_helloworld </display-name>


<filter>
<filter-name>struts2 </filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher </filter-class>
</filter>
<filter-mapping>
<filter-name>struts2 </filter-name>
<url-pattern>/* </url-pattern>
</filter-mapping>
<welcome-file-list>

<welcome-file>index.jsp </welcome-file>

</welcome-file-list>
</web-app>

lib文件

1.commons-io-1.1.jar,
2.commons-logging-1.0.2.jar,
3.freemarker-2.3.13.jar,
4.ognl-2.6.11.jar,
5.struts2-core-2.1.6.jar,
6.xwork-2.1.2.jar,commons-fileupload-1.1.1.jar


和一个index.jsp页面,struts.xml文件没有配置
...全文
864 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
ylovep 2011-09-08
  • 打赏
  • 举报
回复
可能是struets.xml文件配置错误
jxsdzw007 2011-09-08
  • 打赏
  • 举报
回复
HTTP ERROR: 200
OK
RequestURI=/bookshop/index.jsp
jxsdzw007 2011-09-08
  • 打赏
  • 举报
回复
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@page import="com.zte.bookshop.dao.imp.UserInfoDaoImp"%>
<%@page import="java.util.List"%>
<%@page import="com.zte.bookshop.entity.UserInfo"%>
<!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=utf-8">
<title>Insert title here</title>
</head>
<body>
<%--从数据库中取数据输出 --%>
<form action="UserLoginServlet" method="post">
<table border="0" width="80%" align="center">
<tr>
<td align="center" colspan=2>
<h2>用户登录</h2>
</td>
</tr>
<tr>
<td align="right">*用户名:</td>
<td><input type="text" name="txtName" /></td>
</tr>
<tr>
<td align="right">*密 码:</td>
<td><input type="password" name="txtPwd" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="登 录" /> <input type="reset"
value="重 置" /> <input type="button" " value="注 册"
onclick="window.location.href='register.jsp'" /></td>
</tr>
</table>
</form>
</body>
</html>
xuexijava 2009-08-07
  • 打赏
  • 举报
回复
HTTP 200表示服务器已成功处理了请求的状态代码
如果楼主用的是Struts为什么不配置Struts.xml文件?又是否设定的转向?
最好把代码贴出来。。。
楼主的结帐率不太高哦。。。嘎嘎
sangshusen_1988 2009-08-06
  • 打赏
  • 举报
回复
建议吧所有错误信息贴出来,这样怎么看呢

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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