Re: Struts2 iterator tag

2011-02-22 Thread Dave Newton
On Tue, Feb 22, 2011 at 12:26 PM, Jainitya wrote: > [JSP] Would it be possible for you to only include the actual stuff that matters? Editing stuff down is really helpful for people trying to focus on what's actually wrong. 1) http://struts.apache.org/2.x/docs/selecting-themes.html You may be ab

Re: Struts2 iterator tag

2011-02-22 Thread Jainitya
hi Dave I have updated my JSP as per your suggestion but still the issue is same. updated JSP

Re: Struts2 iterator tag

2011-02-22 Thread Maurizio Cucchiara
First and foremost, I'd try to make cleaner the iterator definition: On 22 February 2011 17:21, Jainitya wrote: > > Hi > I am also a newbie in struts 2 ,I dont know how to use this forum so > replying on this thread. > I also have lookalike problem with Iterator tag > My JSP is > >          

Re: Struts2 iterator tag

2011-02-22 Thread Dave Newton
On Tue, Feb 22, 2011 at 11:21 AM, Jainitya wrote: > I am also a newbie in struts 2 ,I dont know how to use this forum http://struts.apache.org/mail.html > >      >            theme="simple" > name="selllog[%{#selllog.index}].idSellLog"/> FWIW, I'm not sure this is valid

Re: Struts2 iterator tag

2011-02-22 Thread Jainitya
Hi I am also a newbie in struts 2 ,I dont know how to use this forum so replying on this thread. I also have lookalike problem with Iterator tag My JSP is

Re: Struts2 Iterator tag problem

2008-09-10 Thread Gabriel Belingueres
Something like this: 2008/9/10 amolbehl <[EMAIL PROTECTED]>: > > Hi I am trying to display a ArrayList of lists using struts2 iterator tag. > > > private void dataReady(){ > for (int itr = 0; itr < this.HOURS; itr++) { > tempList = new Array

Re: Struts2 iterator tag

2008-07-08 Thread oraskin
Try the following: Hope it helps! BGE Ger wrote: > > Hello, > I'm struts(2) newbie and I need some help for the iterator tag. > How can I access to an updated list in the action class? > My JSP looks like: > > > > >value="%{destination}"/> >

Re: Struts2 iterator tag

2008-07-05 Thread dusty
The only syntax difference I see is you should put #stat.index rather than stat.index so it looks like descList) in your action. BGE Ger wrote: > > Hi Laurie, thank you for help! > > you are right that's what I want: to push back the updated fields into the > list. > And then I want access th

Re: Struts2 iterator tag

2008-07-03 Thread BGE Ger
Hi Laurie, thank you for help! you are right that's what I want: to push back the updated fields into the list. And then I want access the updated fields in the update action class . I think maybe there is somesthing wrong in my tag syntax? I found out that I must use "{}" instead of "[]" which i

Re: Struts2 iterator tag

2008-07-03 Thread Laurie Harper
BGE Ger wrote: Hello, I'm struts(2) newbie and I need some help for the iterator tag. How can I access to an updated list in the action class? My JSP looks like: value="%{category}" /> value="%{source}" /> value="%{text}"/>

Re: Struts2 iterator tag

2008-07-03 Thread Laurie Harper
I'm not sure what you mean by a 'submit in each row' but if you want to push data back into the list then yes, you need the index in the input's name as you have. L. BGE Ger wrote: thank you for the answer! But I've read, if I want to change the complete list with the submit action. I

Re: Struts2 iterator tag

2008-07-03 Thread BGE Ger
...thank you for the answer! But I've read, if I want to change the complete list with the submit action. I must use the list index. If I make a submit in each row I can use "destination" syntax. Isn't it right? Jim Kiley wrote: > > For starters, you can simplify things a lot by changing y

Re: Struts2 iterator tag

2008-07-03 Thread Jim Kiley
For starters, you can simplify things a lot by changing your syntax from: name="descList[%{stat.index}].destination" to just: name="destination" The iterator tag pushes descList[index] onto the OGNL stack in every iteration, so you can refer to its attributes directly. jk On Thu, Jul 3, 2008