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> > <title>Test</title> > </head> > > <body> > <html:form action="/test.do" name="testForm" type="com.myform.TestForm"> > <table> > <tr> > <td>First Name:</td> > <td><html:text property='username'/></td> > </tr> > <tr> > <td>Last Name:</td> > <td><html:text property='password'/></td> > </tr> > <p><html: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-name>22ban - Development site</display-name> > <description> > Under heavy construction > </description> > > <servlet> > <servlet-name>22ban</servlet-name> > > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> > <init-param> > <param-name>config</param-name> > <param-value>/WEB-INF/struts-config.xml</param-value> > > </init-param> > <init-param> > <param-name>application</param-name> > <param-value>22BanResources</param-value> > </init-param> > </servlet> > > <servlet-mapping> > <servlet-name>22ban</servlet-name> > <url-pattern>*.do</url-pattern> > </servlet-mapping> > > <welcome-file-list> > <welcome-file>index.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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

