Saturday, May 25, 2013

Combo Box in Java struts

     <logic:notPresent name="leaveappformid" scope="request">
          <html:select property="leaveTypeId" styleId="leaveTypeId" style="width:150" >
               <html:option value="">Select</html:option>
               <html:options collection="leaveTypeList" property="leaveTypeId" labelProperty="leaveTypeName"/>
          </html:select>
      </logic:notPresent>
      <logic:present name="leaveappformid" scope="request">
      <html:hidden property="leaveTypeId"/>
          <html:select property="leaveTypeId" styleId="leaveTypeId" style="width:150" >
               <html:option value="">--Select--</html:option>
               <html:options collection="leaveTypeList" property="leaveTypeId" labelProperty="leaveTypeName"/>
           </html:select>
        </logic:present>

No comments:

Post a Comment