用struts写jsp时报错???  

04-04-02 mikecaolei
写了几个jsp,想用用struts,但是报错了,为什么会出现如下错误:

javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans

collection

at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:716)

at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:438)

at _inputcontent__jsp._jspService(/struts/inputContent.jsp:14)

at com.caucho.jsp.JavaPage.service(JavaPage.java:75)

at com.caucho.jsp.Page.subservice(Page.java:497)

at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)

at com.caucho.server.http.Invocation.service(Invocation.java:312)

at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)

at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)

at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:272)

at com.caucho.server.TcpConnection.run(TcpConnection.java:137)

at java.lang.Thread.run(Thread.java:534)

请高手指点!!!!

MaxRbt
2004-04-03 08:27
一般出现这个问题是config.xml出现了问题

buoyun
2004-04-08 15:34
这是因为你的Struts-config.xml中ActionMapping以及FormBeans两项配置没有配好。

在设置好以上两项之前,含有Struts form的jsp页面是不能正常运行的

猜你喜欢