各路大神,跪求解决方法!?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";
	}

http://img.mukewang.com/572f1a4c0001f5c911300575.jpg

Copy_Er木子火曰立
浏览 1452回答 1
1回答

weibo_风一样的一不留神_03324797

表达式错误  s property里面用单引号
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java