Sorry if this message is already present in the struts-user archives, but temporarily I can't reach the site more. I created a DynaValidatorFormBase class, when I try to use this class in my class LoginAction I have the following error: java.lang.ClassCastException: org.apache.struts.validator.DynaValidatorForm.
public class DynaValidatorFormBase extends DynaValidatorForm { private String m_password = null; private String m_userName = null; public DynaValidatorFormBase() { } public String getPassword() { return m_password; } public String getUserName() { return m_userName; } } public class LoginAction extends ActionBase { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Obtain the input values from the form String userName = ((DynaValidatorFormBase)form).getUserName(); //java.lang.ClassCastException: org.apache.struts.validator.DynaValidatorForm String password = ((DynaValidatorFormBase)form).getPassword(); ... } Struts-config.xml: <form-bean name="DynaValidatorFormBase" type="org.apache.struts.validator.DynaValidatorForm"> <form-property name="userName" type="java.lang.String" initial="" /> <form-property name="password" type="java.lang.String" initial="" /> </form-bean> <action path="/login" name="DynaValidatorFormBase" scope="request" validate="true" type="com.MyAppli.struts.controller.actions.LoginAction" input="site.login.page"> <forward name="success" path="site.toto.page" /> </action> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>