Topic: 奇怪的问题???????????????????????????

  Print this page

1.奇怪的问题??????????????????????????? Copy to clipboard
Posted by: net0309
Posted on: 2004-11-16 11:56

jsp中:
<html:form action="emp.do?method=logon">
<logic:iterate id="list" name="departs">       
<bean:write name="list" property="departId"/>
<bean:write name="list" property="departName"/>    
<bean:write name="list" property="manager"/>
</logic:iterate>
</html:form>
departs中包含:departId \departName\managet
action中:
request.setAttribute("departs", _service.getDeparts());

出现错误:
javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
  org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
  org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
  org.apache.jsp.hrm.departList_jsp._jspService(departList_jsp.java:171)
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1074)
  org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:420)
  org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1176)
  org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:454)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

--------------------
去掉 <bean:write name="list" property="departId"/>却没问题
如何解决??????????????????????????????????????????????????????????????

2.Re:奇怪的问题??????????????????????????? [Re: net0309] Copy to clipboard
Posted by: net0309
Posted on: 2004-11-17 20:20

no one can help me?

3.Re:奇怪的问题??????????????????????????? [Re: net0309] Copy to clipboard
Posted by: sunfmin
Posted on: 2004-11-22 10:55

struts-config.xml,关于message resource那块贴出来看看,
还有你的messagesxxx.properties的路径位置也说明一下。


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923