EL表达式, 出问题,大家快看看,我都快疯掉了。。。
在Struts框架中,一个Action的excute()方法中执行request.setAttribute("client", client);并转发到另一个jsp页面。
如果在页面中执行:
<%=((Client)request.getAttribute("client")).getCUserName()%>
则能正常得到结果。
但如果换在EL表达式:
${client.cUserName}
则出错:javax.el.PropertyNotFoundException: Property 'cUserName' not found on type com.netPhoneBook.Module.Client
好奇怪呀~~~~~~ 大家快帮我想想是怎么回事?? 感激涕零中。