I am having to get database information to initialize the Form values in the loadForm method. One such method throws an exception. How do I handle errors to be displayed when the form is being initialized?
[I recognize that having the Form throw an exception for the calling action class to catch is ONE answer, is there another way?]
Struts provides the ActionErrors/ActionMessages for the Action class, but what structure exists for the Form class of Struts?
Below is a VERY skeletal representation of what I am facing:
public class TestForm extends ActionForm
{
ArrayList states;
public TestForm loadForm()
{
states=new ArrayList();
states=someDBmethodCall();
}
}