As Hubert suggested here are some of the details.

<form-beans>
   <form-bean name="dependentForm" type=
"hronline.secure.personal.dependents.DependentForm">
   </form-bean>
</form-beans>

<action path="/personal/Dependent" type=
"hronline.secure.personal.dependents.DependentAction" name="dependentForm" 
scope="request" validate="false">
   <forward name="dependent" path=
"/WEB-INF/personal/dependents/dependent.jsp">
   </forward>
   <forward name="cancel" path="/personal/Dependents">
   </forward>
</action> 

...
public class DependentForm extends ActionForm {
   private DependentVO dependent;

   public DependentVO getDependent() {
      return dependent;
   }

   public void setDependent(DependentVO dependentVO) {
      dependent = dependentVO;
   }
...
}

public class DependentVO extends Dependent implements Serializable {
   private String disabledIndicator;
   private String dentalEligibilityIndicator;
   private String dependentId;
   private String fulltimeStudentIndicator;
   private String healthEligibilityIndicator;
   private String pensionEligibilityIndicator;
....
   public String getHealthEligibilityIndicator() {
      return healthEligibilityIndicator;
   }

   public void setHealthEligibilityIndicator(String string) {
      healthEligibilityIndicator = string;
   }

Once again... I really appreciate your time and patience with this !
- Glenn






Hubert Rabago <[EMAIL PROTECTED]> 
06/06/2005 05:50 PM
Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
Struts Users Mailing List <user@struts.apache.org>
cc

Subject
Re: html-el:checkbox quandary






Yes.  Maybe if you include the actual mappings, JSP text, form
declaration, etc, someone will find something.  From what you've said,
it should work.

Hubert


On 6/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Yes the form bean is associated with the HTML form.
> 
> If I simply do this:
> <c:out value="${dependentForm.dependent.healthEligibilityIndicator}"/>
> It writes out the contents. This takes care of the value attribute.
> 
> My question is for the property.
> Can a nested bean property be used in the html-el:checkbox as the
> property?
> 
> - Glenn
> 
> 
> Hubert Rabago <[EMAIL PROTECTED]>
> 06/06/2005 04:24 PM
> 
> 
> 
> Is dependentForm is form bean associated with the HTML form that
> your checkbox is a part of?  There could be a typo in your
> struts-config, or your <html:form>, or your form declaration.
> 
> Hubert
> 
> On 6/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I gave it a go and I get this error now... more precise but an error
> none
> > the less...
> > [06/06/05 15:40:53:846 EDT] 5dc35dc3 WebGroup      E SRVE0026E: 
[Servlet
> > Error]-[No getter method for property
> dependent.healthEligibilityIndicator
> > of bean org.apache.struts.taglib.html.BEAN]:
> > javax.servlet.jsp.JspException: No getter method for property
> > dependent.healthEligibilityIndicator of bean
> > org.apache.struts.taglib.html.BEAN
> >
> >

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



Reply via email to