WEB开发网
开发学院WEB开发Jsp 使用logic:iterate遇到的问题 阅读

使用logic:iterate遇到的问题

 2008-01-05 18:31:10 来源:WEB开发网   
核心提示:<logic:iterate id="agUser" name="agUserOverview"> <tr> <td align="left" class="page" <a href="

<logic:iterate id="agUser" name="agUserOverview">
     <tr>
     <td align="left" class="page"

   <a href="PRocessuser.do?actiontype=view&aguserid=<bean:write name="agUser" property="userid" filter="true" />">
       <bean:write name="agUser" property="userid" filter="true" /></a>
      </td>
       <td align="center" class="page"><bean:write name="agUser" property="username" filter="true" /></td>
       <td align="center" class="page"><bean:write name="agUser" property="passWord" filter="true" /></td>
       <td align="center" class="page">
       <logic:equal name="agUser" property="roleid" value="1">
       治理员
       </logic:equal>
       <logic:equal name="agUser" property="roleid" value="2">
       普通员工
       </logic:equal>
       </td>
      </tr>
</logic:iterate>

假如把红色那段去掉,程序就能运行,也能把数据表现出来, 但是假如留下这段,页面就会出错误:

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
	org.apache.jsp.system.user.queryuserresult_jsp._jspService(queryuserresult_jsp.java:175)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
	org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


Tags:使用 logic iterate

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接