Well, I'm not an expert, but I can try. First, the obvious stuff I assume you know. ansm must be a bean you've exposed, right? If so, then it must have a getter method, getEntryType(). In order for the contents within logic:equal to appear, this method must return "subformat" [or "group"]. I *think* that if the ansm bean were not exposed, or you didn't have the getter, there'd be an error, so I guess that's not it. I would do a <bean:write name="ansm" property="entryType"\> prior to the logic tags, and see what happens.
m --- "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> wrote: > Hmmmmm........ > I don't see what would be wrong then. I'll repost > my code. > Any ideas anybody? > > <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> > > > ~ Keith > > http://www.buffalo.edu/~kkamholz > > > > -----Original Message----- > From: Michael Ruppin [mailto:[EMAIL PROTECTED] > Sent: Friday, May 30, 2003 12:24 PM > To: Struts Users Mailing List > Subject: RE: Nesting logic tags > > > 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"> > === message truncated === __________________________________ 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]