Servlet.service() for servlet jsp threw exception

2025-03-26 06:04:38
推荐回答(2个)
回答1:

关键是这一句:Property 'time' not found on type com.xiao.model.game.player.Role

 

检查:

  1. 你在Role类中是否有time属性,如果没有,添加一个

  2. 该time属性是否有对应的get/set方法,有的话,是否写错大小写了,是否是标准的get/set方法

问题所在:页面中的el表达式中拿不到role对象中的time值

回答2:

Property 'time' not found on type com.xiao.model.game.player.Role