日期:2014-05-18  浏览次数:20838 次

执行下面这段代码是出错了,帮忙解决一下
源码:
String   actpage   =   "index.jsp ";
RequestDispatcher   rd   =   request.getRequestDispatcher(actpage);
rd.forward(request,response);

抛出的异常:
javax.servlet.ServletException:   Unresolved   compilation   problems:  
myjsp   cannot   be   resolved   to   a   type
myjsp   cannot   be   resolved
myjsp   cannot   be   resolved   to   a   type

at   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
at   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
at   org.apache.jsp.index_jsp._jspService(index_jsp.java:76)
at   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at   org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at   org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
at   org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
at   org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at   myjsp.MyApp.doGet(MyApp.java:84)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at   myjsp.MyApp.service(MyApp.java:192)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at   myjsp.MyApp.service(MyApp.java:199)
at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at   org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at   org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at   org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at   org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at   org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at