Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSP exception, "quote symbol expected"

<%@ page import="java.util.*" %>
<html>
<body>
<h1 align="center">blablalblalblab</h1>
<p>
<%
List styles = (List)request.getAttribute("styles");
Iterator it = styles.iterator();
while(it.hasNext()) {
    out.print("<br>try: " + it.next());
}
%>
</p>
</body>
</html>

after executing my servlet request i'm getting error

org.apache.jasper.JasperException: /result.jsp (line: 1, column: 18) quote symbol expected org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)

can't find any quotes that are not on right place.

like image 582
poss Avatar asked Dec 10 '22 04:12

poss


1 Answers

Make sure all your quotes are straight quotes, not curvy ones.

like image 155
axtavt Avatar answered Dec 24 '22 12:12

axtavt