请细心的帮我看看错误在哪里?半个多小时我没有找出任何问题。
jsp页面部分代码
<tr height="30px">
<th><font color="red" size="2">*</font><font size="2">上报日期:</font></th><td><font size="2">${requestScope.travelExpense.reportDate}</font></td>
<th><font size="2">姓名:</font></th><td><font size="2">${requestScope.travelExpense.name}</font></td>
</tr>
<tr>
<th><font size="2">部门:</font></th><td><font size="2">${requestScope.travelExpense.department}</font></td>
<th><font size="2">项目号:</font></th><td><font size="2">${requestScope.travelExpense.depId}</font></td>
</tr>
<tr>
<th><font size="2">出差事由:</font></th><td><font size="2">
${requestScope.travelExpense.reason}</font></td>
<th><font size="2">地点:</font></th><td><font size="2">${requestScope.travelExpense.place}</font></td>
</tr>
<tr>
<th><font size="2">起始日期:</font></th><td><font size="2">${requestScope.travelExpense.startDate}</font></td>
<th><font size="2">终止日期:</font></th><td><font size="2">${requestScope.travelExpense.endDate}</font></td>
</tr>
<tr>
<th><font size="2">天数:</font></th><td><font size="2">
${requestScope.travelExpense.days}</font></td>
<th><font size="2">车船费:</font></th><td><font size="2">${requestScope.travelExpense.travelExpense}</font></td>
</tr>
所报错误:
Struts Problem Report
Struts has detected an unhandled exception:
Messages: Property 'reportDate' not found on type java.lang.Double
An exception occurred processing JSP page /reimbursement/TravelExView.jsp at line 30 27:
28: 29: 30: *上报日期: "${requestScope.travelExpense.reportDate}" 31: 姓名: ${requestScope.travelExpense.name} 32:
33: Stacktrace:
File: javax/el/BeanELResolver.java
Line number: 193
--------------------------------------------
Stacktraces
org.apache.jasper.JasperException: An exception occurred processing JSP page /reimbursement/TravelExView.jsp at line 30 27: 28: 29: 30: *上报日期: "${requestScope.travelExpense.reportDate}" 31: 姓名: ${requestScope.travelExpense.name} 32:
33: Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle
JspException (JspServletWrapper.java:510)
------解决方案--------------------
'reportDate' 是什么类型
------解决方案--------------------
探讨 可以结贴了,我的问题解决了,问题出在这里: <th><font size="2">车船费:</font></th><td><font size="2">${requestScope.travelExpense.travelExpense}</font></td> </tr> 大家仔细看这一段代码类的对象名跟一个属性名是重复的,即travelExpense.travelExpense 后……我的异常网推荐解决方案: An exception occurred processing JSP page,http://www.myexception.cn/j2se/33144.html