jsp中代码在Eclipse中打开正常,导入项目导入MyEclipse后显示如下异常:

Syntax error, insert "}" to complete MethodBody

但项目运行时网页可以正常打开,没毛病

解决方案:

给${bill.bno}即EL取值表达式加上单引号 '' 变成 '${bill.bno}' 即可,如下所示:

<input type="button" name="button" value="删除" class="input-button" onclick="del('${bill.bno}')" />

总结:在jsp中等场合,一些解决不了的正常问题可以用单引号来解决

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2021-12-03
  • 2021-12-14
  • 2022-01-19
猜你喜欢
  • 2021-09-28
  • 2021-10-15
  • 2022-12-23
  • 2021-09-27
  • 2021-08-24
  • 2022-01-23
  • 2022-12-23
相关资源
相似解决方案