struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (David M. Karr)
Subject Re: formtag error
Date Tue, 10 Jun 2003 04:17:01 GMT
>>>>> "Richard" == Richard Raquepo <> 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
    Richard> 	at org.apache.struts.taglib.html.FormTag.lookup(
    Richard> 	at org.apache.struts.taglib.html.FormTag.doStartTag(
    Richard> 	at _input__jsp._jspService(/input.jsp:9)
    Richard> 	at com.caucho.jsp.JavaPage.service(
    Richard> 	at com.caucho.jsp.Page.subservice(
    Richard> 	at com.caucho.server.http.FilterChainPage.doFilter(
    Richard> 	at com.caucho.server.http.Invocation.service(
    Richard> 	at com.caucho.server.http.CacheInvocation.service(
    Richard> 	at com.caucho.server.http.HttpRequest.handleRequest(
    Richard> 	at com.caucho.server.http.HttpRequest.handleConnection(
    Richard> 	at
    Richard> 	at
    Richard> my jsp looks like this:<%@ taglib uri="/struts-html" prefix="html" %><!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>   <head>      <title>Test</title>
  </head>   <body> <html:form action="/" 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:
 <form-beans type="org.apache.struts.action.ActionFormBean">   <form-bean name="paramForm"
type="org.apache.struts.action.DynaActionForm">    <form-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.jsp"    name="testForm"     path="/param"         type="org.apache.struts.action.Action">
  </action>   <action     path="/test"         type="com.myaction.TestAction"   
name="testForm">    <forward name="nextaction" path="output.jsp"/>       </action>

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++   ; SCJP; SCWCD

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message