struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Durham David Cntr 805CSS/SCBE" <David.Durh...@scott.af.mil>
Subject RE: Rendering alternate rows of a table in Struts
Date Fri, 07 Feb 2003 20:49:25 GMT
> > -----Original Message-----
> > From: David Graham [mailto:dgraham1980@hotmail.com] 
> > Sent: Friday, February 07, 2003 3:13 PM
> > To: struts-user@jakarta.apache.org
> > 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message