各路大神,跪求!!!HTTP Status 500 - Malformed OGNL expression:

_neurotome 发布于 2016/05/08 19:18
阅读 486
收藏 0
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";
	}





加载中
0
wuweiwuwei
wuweiwuwei
把<s:property value="#session.loginUserNum"/>改为EL表达式{loginUserNum}。还有可能是这里的双引号要改为单引号,你都试试吧。
返回顶部
顶部