Hello, 

I have a problem with my map backed form.

When I try to validate the form, when I try to retrieve value it throws a null pointer 
exception, as if the map was null. 
I am successful going through my jsp and populating the bean, so i am not sure what is 
going on.

What might be the problem?

form:

 private Map properties;

public Map getProperties() {
        return this.properties;
    }
    
    /** Setter for property properties.
     * @param properties New value of property properties.
     *
     */
    public void setProperties(Map properties) {
        this.properties = properties;
    }
    
    public void setValue(String key, Object value) {
        properties.put(key, value);
    }
    
    public Object getValue(String key) {
        return properties.get(key);
    }

struts-config definitions

<form-bean name="registerUserForm" type="com.blah.gum.forms.RegisterUserForm"/>

<action path="/registerUser" type="com.blah.gum.actions.RegisterUser" 
name="registerUserForm"
                scope="request" input="new_register.jsp">
  <forward name="success" path="/out.jsp"/>
 </action> 

Reply via email to