Re: Rendering alternate rows of a table in Struts

2003-02-10 Thread Joe Latty
TED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Monday, February 10, 2003 11:36 PM Subject: RE: Rendering alternate rows of a table in Struts > Hi, > >I found this from the archives. > > > > > >

RE: Rendering alternate rows of a table in Struts

2003-02-10 Thread Mohan Radhakrishnan
I think that there is a way to check the index value with logic compare tags. Mohan -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 8:30 PM To: [EMAIL PROTECTED] Subject: Re: Rendering alternate rows

RE: Rendering alternate rows of a table in Struts

2003-02-10 Thread Mohan Radhakrishnan
I think that there is a way to check the index value with logic compare tags. Mohan -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 8:30 PM To: [EMAIL PROTECTED] Subject: Re: Rendering alternate rows of a tabl

Re: Rendering alternate rows of a table in Struts

2003-02-10 Thread Simon Kelly
I really need to move to the states and get me some of that blunt action! - Original Message - From: "Mark Galbreath" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 9:18 PM Subject:

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Craig R. McClanahan
On Fri, 7 Feb 2003, Micael wrote: > > That is, as they say, "WAY COOL". Someone is thinking. > That's why we went to a new major version number (2.0) instead of an incremental update (it was originally proposed to be 1.3). And these two new features are only two of lots ... The "Proposed Fin

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Craig R. McClanahan
On Fri, 7 Feb 2003, Sundar Narasimhan wrote: > Date: Fri, 7 Feb 2003 16:02:32 -0500 > From: Sundar Narasimhan <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > Subject: RE: Rendering alternate rows of a table in Struts > > Hi, Craig: > > >JSTL i

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Micael
IL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject: RE: Rendering alternate rows of a table in Struts > > Oh, and cutting and pasting tags is better? With scriptlets, you need to > know one thing: Java. With taglibs you must expand and j

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Assenza, Chris
Indeed, JSP is starting to feel mature in many more ways. :) Chris -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:54 PM To: [EMAIL PROTECTED] Subject: RE: Rendering alternate rows of a table in Struts Cool! JSP is catching up to

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Assenza, Chris
Craig wrote: > * Tag files, which allow a page author to point at a chunk of > JSP code (which might itself have tag invocations insode) and > say, in effect, "treat this chunk of stuff as a custom tag". > Now, page authors can create and reuse presentation-ish stuff > just as easily as Ja

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Sundar Narasimhan
Hi, Craig: >JSTL in particular covers a huge amount of ground on the nitty gritty >things, and (where it overlaps with things in the struts-bean and >struts-logic libraries) does it much better, mostly thanks to the >expression language's power. I couldn't agree w/ this statement more after spen

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread David Graham
Cool! JSP is catching up to ColdFusion's ease of use. I'm a big CF fan but there's really no need for it when we have free Java. David You are correct that designing correct tags in JSP 1.1/1.2 isn't all that easy. However, folks will *really* like what is coming up in JSP 2.0 in this area --

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Durham David Cntr 805CSS/SCBE
> > -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: >

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Dennis Doubleday
> -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: > > > " /> > > easi

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Craig R. McClanahan
On Fri, 7 Feb 2003, Mark Galbreath wrote: > Date: Fri, 7 Feb 2003 14:35:18 -0500 > From: Mark Galbreath <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject:

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Mark Galbreath
Hey Ken! Would you please share the URL to this library? I read much about it but I can only find the .NET version ( http://www.dotnetmagic.com/ ). Where is the Java version? TIA, Mark -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 2:45

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Mark Galbreath
And why aren't you sharing? -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 2:52 PM What kind of smoke break are you taking? > -Original Message- > From: Ken Anderson [mailto:[EMAIL PROTECTED]] > Sent: Friday, Feb

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Durham David Cntr 805CSS/SCBE
FUD > -Original Message- > From: David Graham [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 07, 2003 2:13 PM > To: [EMAIL PROTECTED] > Subject: RE: Rendering alternate rows of a table in Struts > > > How is this: > > > "

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread David Graham
ROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: RE: Rendering alternate rows of a table in Struts Date: Fri, 7 Feb 2003 15:01:10 -0500 I just created a RowToggler class with a getValue() method that returns an alternating value each time you ca

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Dennis Doubleday
I just created a RowToggler class with a getValue() method that returns an alternating value each time you call it. Then, in JSP, I do: and on each table row: " /> which gives alternating rows different CSS class names. This especially works better than scripting if the data in the rows of the

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Durham David Cntr 805CSS/SCBE
What kind of smoke break are you taking? > -Original Message- > From: Ken Anderson [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 07, 2003 1:45 PM > To: [EMAIL PROTECTED] > Subject: RE: Rendering alternate rows of a table in Struts > > > Personally I p

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Ken Anderson
Personally I prefer the new Java Magic library. You just sprinkle the magic dust on your keyboard and say the magic words and BAM you got table rows with alternating colors. This way I don't have to argue with my fellow developers over scriplets vs. custom tags. We just all rely on Java Magic an

Re: Rendering alternate rows of a table in Struts

2003-02-07 Thread Mark Lepkowski
> >Oh, and cutting and pasting tags is better? > > Yes. This allows changes to occur in one place rather than every jsp using > the scriptlet. Sounds like tomato = to-may-to = to-mah-to to me (i.e., personal preference). In one case you have to maintain tags which are customized. In the othe

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Durham David Cntr 805CSS/SCBE
t there is afraid of taglibs because they seem too difficult to understand, then don't be, they aren't. -Dave > -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 07, 2003 1:35 PM > To: 'Struts Users Mailing List' &g

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread David Graham
Oh, and cutting and pasting tags is better? Yes. This allows changes to occur in one place rather than every jsp using the scriptlet. David _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Mark Galbreath
Oh, and cutting and pasting tags is better? With scriptlets, you need to know one thing: Java. With taglibs you must expand and juggle knowledge by an order of magnitude. Anybody who knows Java can understand a scriptlet; the converse cannot be said of taglibs. Mark -Original Message-

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Durham David Cntr 805CSS/SCBE
> To: 'Struts Users Mailing List' > Subject: RE: Rendering alternate rows of a table in Struts > > > Well, let's be honest, dude. The great idea behind taglibs > in the first > place was to allow non-developers such as HTMLers and graphic > artists

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Mark Galbreath
- From: Rob Kischuk [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 11:13 AM To: 'Struts Users Mailing List' Subject: RE: Rendering alternate rows of a table in Struts > That's all well and good but what happens when the author no longer supports > it, technology m

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Mark Galbreath
Okay, okay...enough already! :-) I've SEEN the light! (right, Simon?) http://java.sun.com/products/jsp/taglibraries.html -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 1:05 PM One of the nice things about custom tag libraries i

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Craig R. McClanahan
On Fri, 7 Feb 2003, Mark Galbreath wrote: > Date: Fri, 7 Feb 2003 10:04:44 -0500 > From: Mark Galbreath <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject:

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Mark Galbreath
The problem was defined by the original query, which specifically asked, "Is there a struts tag...". My responses were restricted to the problem space. If you want to introduce new parameters, then it's a whole new problem that requires another response set. Although I advocated a particular solu

Re: Rendering alternate rows of a table in Struts

2003-02-07 Thread Claude Betancourt
ng List" <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 9:19 AM Subject: Rendering alternate rows of a table in Struts Hi All, I am using logic iterate tag to iterate over a collection and display the contents of the collection in the form of a table. I want to render the alternate r

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread David Graham
At bottom... <% int count = 0 %> <% if( count % 2 == 0 ) { %> <% } else { %> <% } %> <% count++ %> What could be simpler and clearer? Using a taglib. Isn't this much better? David ___

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Rob Kischuk
't know the URL. Mike >From: Justin Ashworth <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> >Subject: RE: Rendering alternate rows of a table in Struts >Date

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Durham David Cntr 805CSS/SCBE
albreath [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 07, 2003 10:04 AM > To: 'Struts Users Mailing List' > Subject: RE: Rendering alternate rows of a table in Struts > > > That's all well and good but what happens when the author no > longer supports &g

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Mark Galbreath
. We did it. Sorry I can't be more help but I don't know the URL. Mike >From: Justin Ashworth <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> >Subject: RE: Re

Re: Rendering alternate rows of a table in Struts

2003-02-07 Thread Michael Lee
gt; To: [EMAIL PROTECTED] Subject: Re: Rendering alternate rows of a table in Struts Date: Fri, 07 Feb 2003 08:00:12 -0700 http://jakarta.apache.org/struts/resources/taglibs.html At the bottom of the page is RowTag. David Hi All, I am using logic iterate tag to iterate over a collection and d

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Michael Lee
#x27;t know the URL. Mike From: Justin Ashworth <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> Subject: RE: Rendering alternate rows of a table in Struts Date: Fri, 07 Feb 2003

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Mark Galbreath
Okay, you can call me by my American Native name. Eating Crow -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 10:00 AM http://jakarta.apache.org/struts/resources/taglibs.html At the bottom of the page is RowTag. -

Re: Rendering alternate rows of a table in Struts

2003-02-07 Thread David Graham
http://jakarta.apache.org/struts/resources/taglibs.html At the bottom of the page is RowTag. David Hi All, I am using logic iterate tag to iterate over a collection and display the contents of the collection in the form of a table. I want to render the alternate rows with different background

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Mark Galbreath
x27;Struts Users Mailing List' Subject: RE: Rendering alternate rows of a table in Struts You can do it quite easily with JSTL... Data > -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 07, 2003 9:35 AM >

Re: Rendering alternate rows of a table in Struts

2003-02-07 Thread Jeff_Mychasiw
AIL PROTECTED]> on 02/07/2003 08:19:21 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To:"Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject: Rendering alternate rows of a table in Struts Hi All, I am using logic iter

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Justin Ashworth
You can do it quite easily with JSTL... Data > -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 07, 2003 9:35 AM > To: 'Struts Users Mailing List' > Subject: RE: Rendering alternate

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Guptill, Josh
- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 9:35 AM To: 'Struts Users Mailing List' Subject: RE: Rendering alternate rows of a table in Struts No. You have to use a scriptlet. But remember - philosophical purity should always yield

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Rob Kischuk
(untested): -Original Message- From: Ritesh Singhal [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 9:19 AM To: Struts Users Mailing List Subject: Rendering alternate rows of a table in Struts Hi All, I am using logic iterate tag to iterate over a collection and display the conte

RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Mark Galbreath
No. You have to use a scriptlet. But remember - philosophical purity should always yield to pragmatism. Mark -Original Message- From: Ritesh Singhal [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 9:19 AM I am using logic iterate tag to iterate over a collection and display

Rendering alternate rows of a table in Struts

2003-02-07 Thread Ritesh Singhal
Hi All, I am using logic iterate tag to iterate over a collection and display the contents of the collection in the form of a table. I want to render the alternate rows with different background colours. I don't want to use scriptlet for finding the row number and set the colour. Is there any Strut