A article is reproduced here: https://blog.csdn.net/sinat_37062120/article/details/79208949
Insert Java code into the JSP
Insert Java code into the JSP
<%if (***)%>
<%=***%>
<%else %>
<%=***%>
Error in the “else” in the third line
Syntax error on token “else”, delete this token
else must be followed by if. This error indicates that if
solution is not found:
add parentheses. Note that the “} “of if must be written inside the” else”
<%if (***) {%>
<%=***%>
<%} else {%>
<%=***%>
<%}%>
div>
Read More:
- Syntax error on token “}“, delete this token
- Syntax error on token “eat”, identifier expected after this token
- Syntax error: unexpected token in uni app project compilation
- Uncaught syntax error: unexpected token ‘< 0‘
- Solve the Java “syntax error on token enum” problem
- Token bucket implementation with adaptive token generation rate
- syntax error near unexpected token `then’ problem solution
- syntax error on token “catch”,Identifier expected
- Solve the problem of shell script “syntax error near unexpected token `fi’”.
- Shell script execution error: “syntax error near unexpected token”
- Solve the problem of syntax error: unexpected end of file or syntax error near unexpected token ` fi ‘error
- Syntax error near unexpected token ‘$’Do is reported when running bash file
- Syntax error near unexpected token `newline’script cannot be executed
- Error: syntax error – unexpected token P in JSON at position 0
- Shell script syntax error near unexpected token ‘$’Do
- Docker machine install syntax error near unexpected token ‘newline’! DOCTYPE HTML problem resolution
- syntax error near unexpected token `else’
- Front end project runtime prompts syntax error: typeerror: token.type.endswith is not a function solution
- Error resolution of unexpected token in JSON at position 0