Struts - 在属性键下找不到bean

时间:2014-02-20 15:36:29

标签: struts struts-1 oc4j

我在OC4J 10.1.3上使用Struts 1.1版,我正在尝试添加新操作。我在struts-web-config.xml

中定义了表单和操作

 <action path="/CJINSearchFindEmployee"
            type="icis.cjin.findcase.CJINSearchFindEmployeeAction"
            scope="request"
            name="cjinFindEmployeeForm"
            validate="false">
    <forward name="show-form" path="icis2.cjin.findemployee.popup"/>
    <forward name="show-results" path="/cjin/findcase/findEmployeeResults.jsp"/>
 </action>

如果我将操作更改回我复制的示例中的代码,则呈现

<html:form action="/CJINSearchFindCase" styleId="cjinSearchFindEmployee">

通过以下表单操作,我得到了

之后的异常
<html:form action="/CJINSearchFindEmployee" styleId="cjinSearchFindEmployee">

ERROR  (InsertTag.java:920) - ServletException in '/cjin/findcase/findEmployee.jsp': No bean found under attribute key cjinFindCaseForm
javax.servlet.ServletException: No bean found under attribute key cjinFindCaseForm
    at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:899)
    at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:816)
    at _cjin._findcase._findCaseResults._jspService(_findCaseResults.java:780)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:440)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:644)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:177)
    at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:68)
    at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:114)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
    at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)
    at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:456)
    at _cjin._findcase._findEmployee._jspService(_findEmployee.java:513)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:735)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:425)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:440)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:644)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:177)
    at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:68)
    at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:114)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
    at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)
    at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:456)
    at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:409)
    at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)
    at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)
    at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)
    at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)
    at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
    at _cjin._cjinPopUp._jspService(_cjinPopUp.java:150)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:440)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:644)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:280)
    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68)
    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
    at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:237)
    at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:300)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:440)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:644)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)

1 个答案:

答案 0 :(得分:0)

有一个页面包含在findEmployee.jsp中调用cjinFindCaseForm,一旦我更新了它就开始工作了。

<div id="searchResults">
    <jsp:include page="findEmployeeResults.jsp"/>
</div>

感谢您的帮助!