I'm getting an Exception that's driving me nuts (any help will be greatly
appreciated):

action: Error creating ActionForm instance of class xdata.MyActionForm
error: Exception Stack Trace: java.lang.ClassCastException:
xdata.MyActionForm

my struts-config.xml has:
<form-beans>
   <form-bean name="loginForm" type="xdata.MyActionForm"/>
</form-beans>
<action-mappings>
   <action 
         path="/login"
         type="actions.LoginAction"
         name="loginForm"
         validate="true"
         input="/jsp/userLogin.jsp">
         <forward name="mainMenu" path="/jsp/mainMenu.jsp"/>
   </action>
</action-mappings>

it works if I put in scope="request" , but then the validate method in
MyActionForm never gets called and it goes straight to the mainMenu.jsp
MyActionForm extends a class which in turn extends ActionForm (which
shouldn't be a problem but maybe it is?)  Has anyone run across this?

Ken Fletcher
Teacher Retirement System of Texas

Reply via email to