慕桂英3389331
2019-03-13 18:19:45
<% if(${porfiles.bdb}.equals("0")){ %> <td> <input type="hidden"/></td> <%}else if(){ %> <td><a href="javascript:;" onclick="bigmoments('${porfiles.jeq },${porfiles.jgr },${porfiles.iwn },${porfiles.jyf }')"><img src="img/penyou.jpg" style="width: 36;height: 36"></a> <input type="hidden" id="eeq" value="${porfiles.jeq }" /></td> <%};%> 錯(cuò)誤::org.apache.jasper.JasperException: Unable to compile class for JSP:An error occurred at line: 344 in the jsp file: /siteuser.jspSyntax error, insert ") Statement" to complete IfStatement341: <td>${porfiles.jyf }</td>342: <td>${porfiles.jaddress }</td>343: 344: <% if(${porfiles.bdb}.equals("0")){345: %>346: <td> <input type="hidden"/></td> 347: An error occurred at line: 348 in the jsp file: /siteuser.jspSyntax error, insert "}" to complete Block345: %>346: <td> <input type="hidden"/></td> 347: 348: <%}else if(){349: %>350: <td><img351: An error occurred at line: [507] in the generated java file: [D:apache-tomcat-7.0.42workCatalinalocalhostimfenceorgapachejspsiteuser_jsp.java]Syntax error on token "}", { expected給看看這是什么錯(cuò),明明覺(jué)得沒(méi)有錯(cuò)誤!
5 回答

蕪湖不蕪
TA貢獻(xiàn)1796條經(jīng)驗(yàn) 獲得超7個(gè)贊
<% if(${porfiles.bdb}.equals("0")){ }
語(yǔ)法錯(cuò)誤,看錯(cuò)誤提示明顯是jsp編譯錯(cuò)誤
這個(gè)地方的語(yǔ)法是有問(wèn)題的
jsp里面<% //這里面正常java語(yǔ)法 有就說(shuō)說(shuō)不會(huì)識(shí)別你這種寫法 el表達(dá)式之類的%>
你想使用el表達(dá)式就不要在<%%>里面使用
在外面使用就好了
添加回答
舉報(bào)
0/150
提交
取消