> > -----Original Message----- > > From: David Graham [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 07, 2003 3:13 PM > > To: [EMAIL PROTECTED] > > Subject: RE: Rendering alternate rows of a table in Struts > > > > > > How is this: > > > > <jsp:useBean id="rowToggler"class="com.mycompany.RowToggler"/> > > <tr class="<bean:write name="rowToggler" property="value"/>" /> > > > > easier to understand than this: > > > > <tag:tr> > > <td></td> > > </tag:tr> > > Well, to be fair, you left > > <%@taglib uri="/WEB-INF/tag.tld" prefix="tag"%> > > out of your example (a one-time thing, like my jsp:useBean). > > My rows could look like > > <tr class="<%=rt.getValue()"> > > if I chose to script instead of using <bean:write>. That's pretty > simple. And I didn't have to spend a day developing a custom > library TLD > and incorporating it into my build process to satisfy a trivial need.
displaying rows of data on a web page is not a trivial need, if you're build script can not handle another class, then you should rethink you're build script. > > > --------------------------------------------------------------------- > 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]