Manisha M Sathe wrote:
I have a action form

public class ReconThresholdEditForm extends ValidatorForm {
...
   private ReconRuleBO reconRuleBO = new ReconRuleBO();
...
}

ReconRuleBO has collection of thresholdsBOs

public class ReconRuleBO {
...
        private Collection thresholdCollection = new ArrayList();
}

public class ReconThresholdBo {
        private String thresholdValue;
}


In my JSP I am displaying Rule and looping through all threshold collection and displaying the thresholdValue. The problem I am facing is when user submits the form, how can I get these threshold values in the action form ? I am getting reconRuleBO as null.

Thanks and regards
Manisha

Since you show your fields having static initializers, the only way to get a null reference there is if it's being overwritten. I'm not sure why Struts would be doing that.

I would suggest starting by adding tracing to the setter method to find out where/when it's being called with a null value. Then try simplifying your code and/or JSP until you isolate the cause.

L.


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

Reply via email to