Re: formtag error
sorry about that... accessing input.jsp i get this error: 500 Servlet Exception javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:712) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:500) at _input__jsp._jspService(/input.jsp:9) 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.HttpRequest.handleRequest(HttpRequest.java:244) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163) at com.caucho.server.TcpConnection.run(TcpConnection.java:137) at java.lang.Thread.run(Thread.java:534) my input.jsp looks like this: %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head titleTest/title /head body html:form action=/test.do name=testForm type=com.myform.TestForm table tr tdFirst Name:/td tdhtml:text property='username'//td /tr tr tdLast Name:/td tdhtml:text property='password'//td /tr phtml:submit/ /html:form /body /html my struts-config.xml looks like this: ?xml version=1.0 encoding=UTF-8? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; struts-config data-sources data-source key=DATASOURCE set-property property=autoCommit value=false / set-property property=description value=SQL Server 2000 datasource / set-property property=driverClass value=com.microsoft.jdbc.sqlserver.SQLServerDriver / set-property property=url value=jdbc:microsoft:sqlserver://Crmserver;DatabaseName=22banDB / set-property property=maxActive value=0 / set-property property=maxIdle value=0 / set-property property=username value=sa / set-property property=password value=password / /data-source /data-sources form-beans form-bean name=testForm type=com.myform.TestForm/ /form-beans action-mappings type=org.apache.struts.action.ActionMappings action input=main.jsp name=testForm path=/param type=org.apache.struts.action.Action /action action path=/test type=com.myaction.TestAction name=testForm scope=request forward name=nextaction path=output.jsp/ /action /action-mappings message-resources parameter=22BanResources / /struts-config my web.xml looks like this: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-name22ban - Development site/display-name description Under heavy construction /description servlet servlet-name22ban/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-nameapplication/param-name param-value22BanResources/param-value /init-param /servlet servlet-mapping servlet-name22ban/servlet-name url-pattern*.do/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list taglib taglib-uri/core/taglib-uri taglib-location/WEB-INF/c.tld/taglib-location /taglib taglib taglib-uri/sql/taglib-uri taglib-location/WEB-INF/sql.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic.tld/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: formtag error
Try adding the load-on-startup element to your 22ban servlet (this is normally called action, by convention). -Original Message- From: Richard Raquepo [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 11:05 PM To: Struts Users Mailing List Subject: Re: formtag error sorry about that... accessing input.jsp i get this error: 500 Servlet Exception javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:712) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:500) at _input__jsp._jspService(/input.jsp:9) 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.HttpRequest.handleRequest(HttpRequest.java:244) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163 ) at com.caucho.server.TcpConnection.run(TcpConnection.java:137) at java.lang.Thread.run(Thread.java:534) my input.jsp looks like this: %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head titleTest/title /head body html:form action=/test.do name=testForm type=com.myform.TestForm table tr tdFirst Name:/td tdhtml:text property='username'//td /tr tr tdLast Name:/td tdhtml:text property='password'//td /tr phtml:submit/ /html:form /body /html my struts-config.xml looks like this: ?xml version=1.0 encoding=UTF-8? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; struts-config data-sources data-source key=DATASOURCE set-property property=autoCommit value=false / set-property property=description value=SQL Server 2000 datasource / set-property property=driverClass value=com.microsoft.jdbc.sqlserver.SQLServerDriver / set-property property=url value=jdbc:microsoft:sqlserver://Crmserver;DatabaseName=22banDB / set-property property=maxActive value=0 / set-property property=maxIdle value=0 / set-property property=username value=sa / set-property property=password value=password / /data-source /data-sources form-beans form-bean name=testForm type=com.myform.TestForm/ /form-beans action-mappings type=org.apache.struts.action.ActionMappings action input=main.jsp name=testForm path=/param type=org.apache.struts.action.Action /action action path=/test type=com.myaction.TestAction name=testForm scope=request forward name=nextaction path=output.jsp/ /action /action-mappings message-resources parameter=22BanResources / /struts-config my web.xml looks like this: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-name22ban - Development site/display-name description Under heavy construction /description servlet servlet-name22ban/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-nameapplication/param-name param-value22BanResources/param-value /init-param /servlet servlet-mapping servlet-name22ban/servlet-name url-pattern*.do/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list taglib taglib-uri/core/taglib-uri taglib-location/WEB-INF/c.tld/taglib-location /taglib taglib taglib-uri/sql/taglib-uri taglib-location/WEB-INF/sql.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic.tld/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
formtag error
i cannot acces any jsp or action:help! can someoe show me what am i doing wrong?javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:712) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:500) at _input__jsp._jspService(/input.jsp:9) 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.HttpRequest.handleRequest(HttpRequest.java:244) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163) at com.caucho.server.TcpConnection.run(TcpConnection.java:137) at java.lang.Thread.run(Thread.java:534) my jsp looks like this:%@ taglib uri=/struts-html prefix=html %!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//ENhtml head titleTest/title /head body html:form action=/test.do name=testForm type=com.myform.TestFormtabletr tdFirst Name:/td tdhtml:text property='username'//td/tr tr tdLast Name:/td tdhtml:text property='password'//td/tr phtml:submit/ /html:form /body/htmlmy struts-config.xml looks like this: form-beans type=org.apache.struts.action.ActionFormBean form-bean name=paramForm type=org.apache.struts.action.DynaActionFormform-property name=name type=java.lang.String /form-property name=lastName type=java.lang.String /form-property name=languages type=java.lang.String / /form-bean form-bean name=testForm type=com.myform.TestForm/ /form-beans action-mappings type=org.apache.struts.action.ActionMappings action input=main.jspname=testForm path=/param type=org.apache.struts.action.Action /action action path=/test type=com.myaction.TestActionname=testFormforward name=nextaction path=output.jsp/ /action /action-mappings
Re: formtag error
Richard == Richard Raquepo [EMAIL PROTECTED] writes: Richard i cannot acces any jsp or action:help! can someoe show me what am i doing wrong?javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans Richard collection Richardat org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:712) Richardat org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:500) Richardat _input__jsp._jspService(/input.jsp:9) Richardat com.caucho.jsp.JavaPage.service(JavaPage.java:75) Richardat com.caucho.jsp.Page.subservice(Page.java:497) Richardat com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182) Richardat com.caucho.server.http.Invocation.service(Invocation.java:312) Richardat com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135) Richardat com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244) Richardat com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163) Richardat com.caucho.server.TcpConnection.run(TcpConnection.java:137) Richardat java.lang.Thread.run(Thread.java:534) Richard my jsp looks like this:%@ taglib uri=/struts-html prefix=html %!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//ENhtml head titleTest/title /head body html:form action=/test.do name=testForm type=com.myform.TestFormtabletr tdFirst Name:/td tdhtml:text property='username'//td/tr tr tdLast Name:/td tdhtml:text property='password'//td/tr phtml:submit/ /html:form /body/htmlmy struts-config.xml looks like this: form-beans type=org.apache.struts.action.ActionFormBean form-bean name=paramForm type=org.apache.struts.action.DynaActionFormform-property name=name type=java.lang.String /form-property name=lastName type=java.lang.String /form-property name=languages type=java.lang.String / /form-bean form-bean name=testForm type=com.myform.TestForm/ /form-beans action-mappings type=org.apache.struts.action.ActionMappings action input=main.jspname=testForm path=/param type=org.apache.struts.action.Action /action action path=/test type=com.myaction.TestActionname=testFormforward name=nextaction path=output.jsp/ /action /action-mappings Please try to present your files in readable fashion (more than one line). It's a little easier on us. It would be useful to see your web.xml file. What version of Struts are you using? Is what you've shown of your struts-config.xml file the entire file, or just an excerpt? Note that you don't need to override the type value in form-beans or action-mappings if you're using the default value (which those are). -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP; SCWCD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]