问题描述
Anerroroccurredatline:163inthejspfile:/WEB-INF/jsp/sys/Menu.jspThemethodsetTest(boolean)inthetypeIfTagisnotapplicableforthearguments(String)160:<c:forEachitems="${buttonList}"var="buttonList">161:<c:iftest="${buttonList=='menuadd.hu'}"><li><aclass="add"href="menuadd.hu?vid={vid}"onmouseup="checkfunct();"rel="menuadd.hu"mask="true"width="600"height="500"><span></span></a></li></c:if>162:<c:iftest="${buttonList=='buttonadd.hu'}"><li><aclass="add"href="buttonadd.hu?vid={vid}"onmouseup="checkfinalmenu();"rel="buttonadd.hu"mask="true"width="600"height="500"><span></span></a></li></c:if>163:<c:iftest="${fn:substring(buttonList,0,fn:length(buttonList))=='menuupdate.hu?vid={gid}'}"><li><aid="editupdate"class="edit"rel="menuupdate.hu"mask="true"width="520"height="450"href="menuupdate.hu?vid={vid}"target="dialog"><span>缂栬緫</span></a></li></c:if>164:<c:iftest="${fn:substring(buttonList,0,fn:length(buttonList)-1)=='menudel.hu?vid={gid'}"><li><aid="deleteid"class="delete"href="menudel.hu?vid={vid}"><span></span></a></li></c:if>165:</c:forEach>166:<liclass="line">line</li>其他机子不报错。
解决方案
解决方案二:
估计这里menuupdate.hu?vid={gid}有问题。你这个是jsp编译通不过。
解决方案三:
jsp编译可以过,有警告,用浏览器跳到这个页面就报这个错误,把代码copy到别人的机子运行访问又没有问题。
解决方案四:
把页面报错的内容贴出来。
解决方案五:
2014-11-2016:55:27org.apache.catalina.core.StandardWrapperValveinvoke严重:Servlet.service()forservletHonourthrewexceptionorg.apache.jasper.JasperException:UnabletocompileclassforJSP:Anerroroccurredatline:163inthejspfile:/WEB-INF/jsp/sys/Menu.jspThemethodsetTest(boolean)inthetypeIfTagisnotapplicableforthearguments(String)160:<c:forEachitems="${buttonList}"var="buttonList">161:<c:iftest="${buttonList=='menuadd.hu'}"><li><aclass="add"href="menuadd.hu?vid={vid}"onmouseup="checkfunct();"target="dialog"rel="menuadd.hu"mask="true"width="600"height="500"title="娣诲姞鑿滃崟"><span>娣诲姞鑿滃崟</span></a></li></c:if>162:<c:iftest="${buttonList=='buttonadd.hu'}"><li><aclass="add"href="buttonadd.hu?vid={vid}"onmouseup="checkfinalmenu();"target="dialog"rel="buttonadd.hu"mask="true"width="600"height="500"title="娣诲姞鎸夐挳"><span>娣诲姞鎸夐挳</span></a></li></c:if>163:<c:iftest="${fn:substring(buttonList,0,fn:length(buttonList)-1)=='menuupdate.hu?vid={gid"}"'}"><li><aid="editupdate"class="edit"rel="menuupdate.hu"mask="true"width="520"height="450"href="menuupdate.hu?vid={vid}"target="dialog"><span>缂栬緫</span></a></li></c:if>164:<c:iftest="${fn:substring(buttonList,0,fn:length(buttonList)-1)=='menudel.hu?vid={gid'}"><li><aid="deleteid"class="delete"href="menudel.hu?vid={vid}"target="ajaxTodo"title="纭畾瑕佸垹闄ゅ悧?"><span>鍒犻櫎</span></a></li></c:if>165:</c:forEach>166:<liclass="line">line</li>Stacktrace:atorg.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)atorg.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)atorg.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:334)atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:312)atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:299)atorg.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)atorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)atorg.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)atorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)atorg.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)atorg.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)atorg.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)atorg.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:209)atorg.springframework.web.servlet.view.AbstractView.render(AbstractView.java:267)atorg.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1217)atorg.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1005)atorg.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:952)atorg.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)atorg.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)atorg.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:617)atorg.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atcom.honour.filter.UrlFilter.doFilter(UrlFilter.java:60)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)atjava.lang.Thread.run(Thread.java:662)
解决方案六:
把你的这个文件拷贝出来另存为utf-8试试看,然后再替换掉你以前的文件。
解决方案七:
先把乱码问题解决后试试。