<form-bean name="NewEligibilityDynaForm" type="com.formbeans.NewEligibilityForm" dynamic="true">
           <form-property name="name" type="java.lang.String"/>
           <form-property name="date" type="java.lang.String"/>
           <form-property name="eligibleCust" type="java.lang.ArrayList"/>
<form-property name="nonEligibleCust" type="java.lang.ArrayList"/> <form-property name="selectedNonEligibleCust" type="java.lang.String[]"/>
           <form-property name="method" type="java.lang.String"/>
       </form-bean>




public class NewEligibilityForm extends DynaActionForm implements Serializable {

   public NewEligibilityForm() {
   }

   /**
    * Resets the form bean attributes
    *
    * @param mapping - are the action mapings.
    * @param request - is the Servlet Request
    */
   public void reset(ActionMapping mapping,
                 javax.servlet.ServletRequest request) {

   }

}


PrepareAction

public ActionForward execute(ActionMapping mapping,
                      ActionForm form,
                      HttpServletRequest request,
                      HttpServletResponse response)
              throws ServletException, IOException {
       DynaActionForm newEligibilityForm = (DynaActionForm) form;

       newEligibilityForm.set("name", "Tom");
}

Getting NullPointerException at statement
newEligibilityForm.set("name", "Tom");

When I debug the code I see the newEligibilityForm is null.

I don't see any bug in the above created formbean.

What am I missing here? thanks.

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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

Reply via email to