We are just starting to use Struts; I apologize if this question stems from
not reading all the docs.

I am trying to setup a jsp (index.jsp) with a <html:form> as shown below:

<html:form action="showView.bws" focus="viewName">

The corresponding action mapping is:

    <form-bean      name="showViewForm"
                    type="com.vitria.controller.ShowViewForm"/>

    <action    path="/showView"
               type="com.vitria.controller.ShowViewAction"
               name="showViewForm"
              scope="session"
           validate="true"
              input="/index.jsp">
      <forward name="success"              path="/showView.jsp"/>
    </action>

Loading index.jsp gives the following error:

javax.servlet.ServletException: Exception creating bean of class
com.vitria.controller.ShowViewForm: java.lang.ClassNotFoundException:
com.vitria.controller.ShowViewForm

If I change <html:form> to <form>, the ActionServlet is able to instantiate
com.vitria.controller.ShowViewForm, populate it and pass it on to
com.vitria.controller.ShowViewAction.

Changing the scope to 'request' did not make a difference.

Any suggestions?

--
Thanks in advance
Jacob

Reply via email to