当前位置: 技术问答>java相关
help????给位请进来看看是否看到过这样的问题,顺便帮小弟解决一下…………
来源: 互联网 发布时间:2015-08-26
本文导语: 我在编译jsp文件的时候出现这样的问题,不知道那位大虾能给小弟一点提示!:: org.apache.jasper.JasperException: Unable to compile class for JSP F:workroomtomcatworkStandalonelocalhost_index$jsp.java:4: Class or interface declaration expected....
我在编译jsp文件的时候出现这样的问题,不知道那位大虾能给小弟一点提示!::
org.apache.jasper.JasperException: Unable to compile class for JSP
F:workroomtomcatworkStandalonelocalhost_index$jsp.java:4: Class or interface declaration expected.
import javax.servlet.*;
^
F:workroomtomcatworkStandalonelocalhost_index$jsp.java:10: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.index$jsp not found.
public class index$jsp extends HttpJspBase {
^
2 errors
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet
…………………………………………
org.apache.jasper.JasperException: Unable to compile class for JSP
F:workroomtomcatworkStandalonelocalhost_index$jsp.java:4: Class or interface declaration expected.
import javax.servlet.*;
^
F:workroomtomcatworkStandalonelocalhost_index$jsp.java:10: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.index$jsp not found.
public class index$jsp extends HttpJspBase {
^
2 errors
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet
…………………………………………
|
在别人那里是什么环境,因为环境不同编译要求也会不同的。你的jsp页面头部可以错啦,有没有好象以下的语句:
------------------
====================================
没有风的日子,却是我毕业的时候??
湛江风好大,毕业之后离开了湛江,
怀念那----风
*************************************
------------------
====================================
没有风的日子,却是我毕业的时候??
湛江风好大,毕业之后离开了湛江,
怀念那----风
*************************************