struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gagné Jean-Christian <Jean-Christian.Ga...@ne.ch>
Subject RE: [SPAM] - class cast exception - Bayesian Filter detected spam
Date Fri, 13 Feb 2004 10:27:38 GMT
Make sure your actions extends org.apache.struts.action.Action, and your
forms extends org.apache.struts.action.ActionForm

For example, given the following struts-config snippet :

<struts-config>
    <form-beans>
        <form-bean name="MyForm" type="mypackage.MyForm">
        </form-bean>
    </form-beans>
    
    <action-mappings>
        <action path="/save" type="mypackage.SaveAction" name="MyForm">
            <forward name="success" path="/SomePage.jsp"/>
        </action>
    </action-mappings>
</struts-config>


"mypackage.MyForm" and "mypackage.SaveAction" must extends the struts
classes mentionned above, directly or indirectly.


JCG

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message