Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
请问是不是index中的action方法或者web.xml配置不对?
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
请问是不是index中的action方法或者web.xml配置不对?
解决方案 »
- 关于一个提交添加新闻内容的错误,请大家来帮帮我
- 请教jsp页面中文本编辑器的问题
- html:radio动态生成property问题
- 新闻发布系统 大狭们怎么同过栏位控制发布新闻..........在线急救
- jsp连接数据库问题:OracleDriver cannot be resolved to a type
- 聊天室问题???
- 一个面试题,关于服务器配置的,大家来看一下
- 没办法,就剩这50分了,帮忙解答一下jsp文件上传的相关问题
- 如何让滚动条始终位于底部?
- web项目中jfreechart显示柱状图
- 请教大家,JSP2.0好像已经发布很长时间了,大家为什么不用啊?
- 请教如何使用JAVA捕获视频???
看看后台报的什么错?
--------------
<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd"><web-app> <!--General description of your Web application-->
<display-name>
Advanced Java How to Program JSP
</display-name>
<description>
This is the Web application in which we
denostrate our JSP and Servlet examples.
</description>
!--Servlet definitions-->
<servlet>
<servlet-name>welcome2</servlet-name>
<description>
A simple servlet that handles an HTTP get request.
</description>
<servlet-class>
WelcomeServlet2
</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<!--Servlet mapings-->
<servlet-mapping>
<servlet-name>welcome2</servlet-name>
<url-pattern>/welcome2</url-pattern>
</servlet-mapping>
</web-app>
-------------------------
index.htm
-------------------------
<?xml version = "1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><!-- Fig. 9.12--><html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Processing get requests with data</title>
</head><body>
<form action = "/myApp/welcome2" method = "get"> <p><label>
Type your first name and press the Submit button
<br /><input type = "text" name = "firstname" />
<input type = "submit" value = "Submit" />
</p></label> </form>
</body>
</html>