struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Natalie D Rassmann <natalie.d.rassm...@lmco.com>
Subject DynaValidator Form is Null
Date Tue, 17 Jun 2003 11:15:05 GMT
I am getting a null pointer exception on the following line:

 DynaActionForm reviewRecordForm = (DynaActionForm)form;

My form in my struts-config.xml file looks like this:

<form-bean name="reviewRecordForm"
type="org.apache.struts.validator.DynaValidatorForm" dynamic="true">
       <form-property name="reviewRecId" type="java.lang.Long"/>
       <form-property name="projectRevId" type="java.long.Long"/>
       <form-property name="recordType" type="java.lang.String"/>
       <form-property name="date" type="java.util.Date"/>
       <form-property name="trNumber" type="java.util.ArrayList"/>
       <form-property name="scNumber" type="java.util.ArrayList"/>
       <form-property name="crNumber" type="java.util.ArrayList"/>
       <form-property name="reviewTitle" type="java.lang.String"/>
       <form-property name="productTitle" type="java.lang.String"/>
       <form-property name="productNumber" type="java.lang.String"/>
       <form-property name="csci" type="prtr.data.DTO.OptionsBean"/>
       <form-property name="module" type="java.lang.String"/>
       <form-property name="reviewType"
type="prtr.data.DTO.OptionsBean"/>
       <form-property name="complexity"
type="prtr.data.DTO.OptionsWoIdBean"/>
       <form-property name="baseline" type="prtr.data.DTO.OptionsBean"/>

       <form-property name="productType"
type="prtr.data.DTO.OptionsBean"/>
       <form-property name="changeType"
type="prtr.data.DTO.OptionsBean"/>
       <form-property name="phase" type="prtr.data.DTO.OptionsBean"/>
       <form-property name="sizes" type="java.util.ArrayList"/>
       <form-property name="disposition"
type="prtr.data.DTO.OptionsBean"/>
       <form-property name="checklists" type="java.util.ArrayList"/>
       <form-property name="meetingTimes" type="java.util.ArrayList"/>
       <form-property name="meetingAttendees"
type="java.util.ArrayList"/>
       <form-property name="meetingAttendeeMetrics"
type="java.util.ArrayList"/>
       <form-property name="totalPercent" type="java.lang.Integer"/>
       <form-property name="totalPrepHours" type="java.lang.Float"/>
       <form-property name="defects" type="java.util.ArrayList"/>
       <form-property name="defectsStatus" type="java.lang.String"/>
       <form-property name="defectsReviewedBy"
type="prtr.data.DTO.OptionsBean"/>
       <form-property name="defectsReviewedByDate"
type="java.util.Date"/>
       <form-property name="exceptionExplanation"
type="java.lang.String"/>
       <form-property name="additionalComments"
type="java.lang.String"/>
       <form-property name="distribution" type="java.util.ArrayList"/>
       <form-property name="page" type="java.util.Integer"/>
       <form-property name="dispatchAction" type="java.lang.String"/>
    </form-bean>

My action-mapping looks like this:

 <action path="/createPeerRecord"
      type="prtr.actions.CreatePeerRecordAction"
      name="reviewRecordForm"
      scope="request"
      validate="false">
      <forward name="Continue" path="/jsp/prtr/tabs/tabs.jsp"/>
    </action>

Does anyone have any ideas??

Natalie


Mime
View raw message