Metro-UI-CSS
Metro-UI-CSS copied to clipboard
Unable to compile class for JSP after including the metro.js file instead of using jsp
Describe the bug other libraries that I include works fine and even the metro4 css is fine, but the metro4.js creates the unable to compile.
My JSP File
<!-- LOCAL CSS -->
<style type="text/css">
<%@include file="/assets/css/metro.min.css" %>
</style>
<script type="text/javascript">
<%@include file="/assets/js/libs/jquery/3.6.0/jquery-3.6.0.slim.min.js" %>
<%@include file="/assets/js/libs/metro4/metro.js" %>
</script>
<style>
body {
overflow: hidden;
}
#myForm {
height: 85vh;
}
.img-text {
position: absolute;
top: 36%;
left: 80px;
right: 80px;
background: rgba(255, 255, 255, 0.6);
}
</style>
** Error**
org.apache.jasper.JasperException: JBWEB004062: Unable to compile class for JSP:
JBWEB004060: An error occurred at line: 24568 in the jsp file: /assets/js/libs/metro4/metro.js String literal is not properly closed by a double-quote 24565: var ListDefaultConfig = { 24566: locale: METRO_LOCALE, 24567: listDeferred: 0, 24568: templateBeginToken: "<%", 24569: templateEndToken: "%>", 24570: paginationDistance: 5, 24571: paginationShortMode: true,
Stacktrace: at [email protected]//org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:95) at [email protected]//org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:198) at [email protected]//org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:455) at [email protected]//org.apache.jasper.compiler.Compiler.compile(Compiler.java:359) at [email protected]//org.apache.jasper.compiler.Compiler.compile(Compiler.java:334) at [email protected]//org.apache.jasper.compiler.Compiler.compile(Compiler.java:321) at [email protected]//org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:652) at [email protected]//org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358) at [email protected]//org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403) at [email protected]//org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [chrome]
- Metro Version [e.g. 4.5.0]
Thanks for opening a new issue. The author has been notified and will review it as soon as possible. For urgent issues and priority support, visit https://xscode.com/olton/Metro-UI-CSS or Patreon
This is a not library problem, check your definitions