Re: Iterate without collection

2005-07-03 Thread Tony Smith
That is cool. But is this going to work: <%= Character.toString (idx + 65) %> ${id} Suppose I have a list in my form with data "d1", "d2", "d3"... I want to print out: A d1 B d2 C d3 ... --- Thomas Corte <[EMAIL PROTECTED]> wrote: > Hi, > > Tony Smith wrote: > > > How can I cast in

Re: Iterate without collection

2005-07-03 Thread Thomas Corte
Hi, Tony Smith wrote: How can I cast int to char in jsp? Try <%= Character.toString (i + 65) %> -- Thomas Corte [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: Iterate without collection

2005-07-03 Thread Wendy Smoak
From: "Tony Smith" <[EMAIL PROTECTED]> How can I cast int to char in jsp? I'm more than willing to help, but I really need to see what you're working with. At the very least I want to know what the form property that's behind this table looks like. What type is it? (And can you change it

Re: Iterate without collection

2005-07-03 Thread Tony Smith
How can I cast int to char in jsp? Thanks, --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Tony Smith" <[EMAIL PROTECTED]> > > >I am using jsp to print out a table. The data (dxx) > > comes from a formbean. At the beginning of every > row, > > I would like to print a character starting from

Re: Iterate without collection

2005-07-03 Thread Martin Gainty
quot; Sent: Sunday, July 03, 2005 7:53 AM Subject: Re: Iterate without collection From: "Tony Smith" <[EMAIL PROTECTED]> I am using jsp to print out a table. The data (dxx) comes from a formbean. At the beginning of every row, I would like to print a character starting from 

Re: Iterate without collection

2005-07-03 Thread Wendy Smoak
From: "Tony Smith" <[EMAIL PROTECTED]> I am using jsp to print out a table. The data (dxx) comes from a formbean. At the beginning of every row, I would like to print a character starting from 'A'. A d11 d12 d13... B d21 d22 d23... C d31 d32 d33... If you put the rows into a TreeMap and us

Re: Iterate without collection

2005-07-02 Thread Tony Smith
I am using jsp to print out a table. The data (dxx) comes from a formbean. At the beginning of every row, I would like to print a character starting from 'A'. Some my table looks like A d11 d12 d13... B d21 d22 d23... C d31 d32 d33... --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Ton

Re: Iterate without collection

2005-07-02 Thread Wendy Smoak
From: "Tony Smith" <[EMAIL PROTECTED]> can I do it with ? In jsp, with struts tag library, how can I change 0 to 'A', 1 to 'B', ... As far as I can tell from the docs... not without putting the things you want to display into a Collection. How about describing the problem you're trying to

Re: Iterate without collection

2005-07-02 Thread Tony Smith
In jsp, with struts tag library, how can I change 0 to 'A', 1 to 'B', ... Thanks, --- Tony Smith <[EMAIL PROTECTED]> wrote: > can I do it with ? > > > --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > > > From: "Tony Smith" <[EMAIL PROTECTED]> > > > If I just want to go through a loop and print >

Re: Iterate without collection

2005-07-02 Thread Tony Smith
can I do it with ? --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Tony Smith" <[EMAIL PROTECTED]> > > If I just want to go through a loop and print out > 1, > > 2, ...10, how can I do it with ? > > Here's a gentle shove in the JSTL direction... > http://struts.apache.org/userGuide/dev_logi

Re: Iterate without collection

2005-07-02 Thread Wendy Smoak
From: "Tony Smith" <[EMAIL PROTECTED]> If I just want to go through a loop and print out 1, 2, ...10, how can I do it with ? Here's a gentle shove in the JSTL direction... http://struts.apache.org/userGuide/dev_logic.html <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> (If

Iterate without collection

2005-07-02 Thread Tony Smith
If I just want to go through a loop and print out 1, 2, ...10, how can I do it with ? Here is my jsp: $ It complained that "Null attribute name". THanks, __ Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it o