hi,

map-backed action form and validator does not seem to work together in my application.
Struts Validator framework is not getting invoked. Has anybody done this before.
Help me out in this regard.


Thank you,

Dilip.

This is my code snippet

_Extended ActionForm :_

package test;

import java.util.*;
import org.apache.struts.actions.*;

public class CreateEntityForm extends ActionForm
{

protected HashMap properties = new HashMap();

       public void setProperty(String key, Object value)
       {
                this.properties.put(key,value);
       }

       public Object getProperty(String key)
       {
                return this.properties.get(key);
       }
}

_validation.xml _:

<form name="createEntityForm">
                        <field
                               property="property(Employees)"
                               depends="required">
                               <arg0 key="label.account.employees"/>
                       </field>
</form>

_struts-config.xml_ :

<form-beans>

    <form-bean
       name="createEntityForm"
       type="test.CreateEntityForm">
    </form-bean>

</form-beans





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



Reply via email to