Struts logic tags work fine "nested" in HTML table tags. Something else must be wrong, perhaps with your logic tag attributes. The nested tag library is for nested BEANS, not for nested tags. Unless you have Forms which contain Forms, or Forms with Collections of Forms, you don't need the nested tab library.
HTH m --- "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> wrote: > The issue isn't getting entryType into the form. > The issue is conditionally > displaying a couple rows in the table/form. I > already have the entryType in > a hidden input earlier in the form. > Input anybody? > I'd really appreciate it. > > ~ Keith > > http://www.buffalo.edu/~kkamholz > > > > -----Original Message----- > From: Phillip Qin [mailto:[EMAIL PROTECTED] > Sent: Friday, May 30, 2003 11:09 AM > To: 'Struts Users Mailing List' > Subject: RE: Nesting logic tags > > > If ansm is a member variable of your ActionForm, use > > <html:hidden property="ansm.entryType"> > > -----Original Message----- > From: Kamholz, Keith (corp-staff) USX > [mailto:[EMAIL PROTECTED] > Sent: May 30, 2003 10:53 AM > To: '[EMAIL PROTECTED]' > Subject: Nesting logic tags > > Hey, > I'm using a table to display a form, but there's one > row that I want to > hide, depending on a previous user selection. > Right now, my code is: > > <table> > <tr> > <td> > <b> > <bean:message key="app.label.numberType"/>: > </b> > </td> > <td> > <html:hidden name="ansm" property="numberType" > write="true"/> > </td> > </tr> > > <logic:equal value="subformat" name="ansm" > property="entryType"> > <tr> > <td> > <b> > <bean:message > key="app.label.subType"/>: > </b> > </td> > <td> > <html:hidden name="ansm" property="subType" > write="true"/> > </td> > </tr> > </logic:equal> > > <tr> > <td> > <b> > <bean:message key="app.label.typeDesc"/>: > </b> > </td> > <td> > <html:text name="ansm" property="typeDesc" > size="50" > maxlength="50"/> > </td> > </tr> > > <logic:notEqual value="group" name="ansm" > property="entryType"> > <tr> > <td> > <b> > <bean:message > key="app.label.typeFormat"/>: > </b> > </td> > <td> > <html:text name="ansm" property="typeFormat" > size="60" maxlength="60"/> > </td> > </tr> > <tr> > <td> > <b> > <bean:message > key="app.label.tabulatedFormat"/>: > </b> > </td> > <td> > <html:text name="ansm" > property="tabulatedFormat" size="60" > maxlength="60"/> > </td> > <tr> > <td> > <b> > <bean:message > key="app.label.lastUsed"/>: > </b> > </td> > <td> > <html:text name="ansm" property="lastUsed" > size="30" maxlength="30"/> > </td> > </tr> > </logic:notEqual> > > </table> > > Unfortunately, it doesn't like me nesting the logic > tags in the table code. > I've never used the struts nested taglib, would this > be an appropriate place > to use it? If not, does anyone know of a workaround > I could use? > > Thanks in advance. > > > ~ Keith > > http://www.buffalo.edu/~kkamholz > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]