问题描述
- 各路大神求救!HTTP Status 500 - Malformed OGNL expression:
-
JSP代码:<li><a href="Student_Query_Electric_bill?type=0&studentnum=<s:property value="#session.loginUserNum"/>" target="MainFrame">电费</a></li>
struts.xml代码:
<action name="Student_Query_Electric_bill" class="action.BillAction" method="studnetQueryBill()"> <result name="student_QueryBill_success">/bill/student_electric_bill.jsp</result> </action>
Java代码:
public String studnetQueryBill(){ BillDao bdao = new BillDaoImpl(); String studentNum = request.getParameter("studentnum"); String type = request.getParameter("type"); Bill bill = bdao.studentQueryBill(studentNum,type); session.setAttribute("Bill", bill); return "student_QueryBill_success"; }
解决方案
表达式有问题,另外你可以把Tomcat重启下,把WebApp下面的工程目录删除,重新部署下,看行不行!希望能帮助到你!
解决方案二:
有可能是你的jQuery版本太低,换个高版本的试试
时间: 2024-11-02 18:51:29