eclipse配置编写javaweb程序

写了第一个程序,结果显示

HTTP ERROR 500
Problem accessing /JSPStudy/01/hello.jsp. Reason: JSP support not configured

提示信息:

 2016-01-12 10:25:06.605:INFO::main: Logging initialized @743msStarting preview server on port 8080

Modules:
  JSPStudy (/JSPStudy)


2016-01-12 10:25:06.805:INFO:oejs.Server:main: jetty-9.2.13.v20150730
2016-01-12 10:25:07.101:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /JSPStudy, did not find org.eclipse.jetty.jsp.JettyJspServlet
2016-01-12 10:25:07.144:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@edf4efb{/JSPStudy,file:/D:/code/j2ee/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/JSPStudy/,AVAILABLE}{D:/code/j2ee/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/JSPStudy}
2016-01-12 10:25:07.229:INFO:oejs.ServerConnector:main: Started ServerConnector@39fb3ab6{HTTP/1.1}{0.0.0.0:8080}
2016-01-12 10:25:07.229:INFO:oejs.Server:main: Started @1372ms
2016-01-12 10:25:17.045:INFO:/JSPStudy:qtp548246552-16: No JSP support.  Check that JSP jars are in lib/jsp and that the JSP option has been specified to start.jar

根据这个文章的方法http://blog.csdn.net/waiwai4701/article/details/26228723。下了许多版本的jetty都没用。

4个回答

图片说明

你jsp页面

 <%@ page contentType="text/html;charset=UTF-8" %>

有报错么?

meetings
meetings 回复ITDragon龙: 就是官网第一个,java ee ide 。我给你发私信了。
大约 4 年之前 回复
qq_19558705
ITDragon龙 回复meetings: 你用的是什么版本的eclipse?这个么 eclipse-jee-kepler ?
大约 4 年之前 回复
meetings
meetings 嗯,开始报The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。然后我按照这个方法给解决了,http://jingyan.baidu.com/article/f79b7cb34f40569144023ef9.html剩上边那个错误了
大约 4 年之前 回复

已解决,谢谢楼上重新给的一个eclpse版本

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问