Hi Guys!

I think I perhaps misread docs, but i don't get it right at the moment.
Perhaps it's just a simple newbie question but I'm stuck:
I have a simple jsp with a struts-form-tag and a struts-html-text-tag.
I've set the tld-paths right, and what I get always when I try to view
that page is "Cannot find ActionMappings or ActionFormBeans collection".

I've put an ActionForm-extending class "loginForm.class" in the
/WEB-INF/classes/ folder and put an action-mapping on it, and I tried to
do all things necessary to make that jsp displayable - implementing
logics I will do when I understood how to map actions.
Here the important lines from my files if you may have a look:

Form-definition in jsp:

<struts:form action="login.do">

ActionServlet-registering in web.xml:

<servlet>
    <servlet-name>action</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>debug</param-name>
      <param-value>2</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>2</param-value>
    </init-param>
  </servlet>
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>

form-bean and action-mapping in struts-config.xml:

  <form-beans>

    <!-- Logon form bean -->
    <form-bean      name="loginForm"
                    type="loginForm.class"/>    (tried also:
"loginForm")

  </form-beans>
...
    <action    path="login"
               type="loginAction"                       (tried also:
loginForm)
               name="loginForm" 
              scope="session"
              input="login">
    </action>

Thanks for any help!
Fabian


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to