Re: about s:iterator

2009-02-21 Thread Hardik Shah
Sove Error By this is for first element Sébastien Domergue wrote: > > When you are inside an iterator, the context becomes the objet as it is > in a "for" except that there is no explicit name for the property > handled. In struts, it's a generic name : [0]. If you just want to > display

Re: about s:iterator

2009-02-20 Thread Hardik Shah
yap you right newton.dave wrote: > > > > Maybe try [0][n]? > > But yuck... That's a horribly brittle way to write code. At *least* use > a map so you don't have to rely on positioning :/ Consider using an > actual object, as well, thus eliminating the bulk of this question. > > Dave >

Re: about s:iterator

2009-02-20 Thread Dave Newton
Hardik Shah wrote: while (rs.next()) { Object [] record = { new Integer(rs.getInt("NodeId")), // Node Id rs.getString("NodeDisplayName"), // Display Name

Re: about s:iterator

2009-02-20 Thread Sébastien Domergue
When you are inside an iterator, the context becomes the objet as it is in a "for" except that there is no explicit name for the property handled. In struts, it's a generic name : [0]. If you just want to display the toString() result, you just have to write : without more parameter. If you wa

Re: about s:iterator

2009-02-20 Thread Hardik Shah
Thnaks but when i print like it shows value in all same like [1,1] i could not understand properly what it do please help more and be more descriptive Sébastien Domergue wrote: > > Hi, > > in an iterator, the object can be accessed by [0]. After that, it is as > in Java. So, with someth

Re: about s:iterator

2009-02-20 Thread Sébastien Domergue
Hi, in an iterator, the object can be accessed by [0]. After that, it is as in Java. So, with something like that it should work : Regards Sébastien Hardik Shah a écrit : hi i am using struts 2.0.11.2 i m filling vector somthing like while (rs.next()) { Ob

about s:iterator

2009-02-20 Thread Hardik Shah
hi i am using struts 2.0.11.2 i m filling vector somthing like while (rs.next()) { Object [] record = { new Integer(rs.getInt("NodeId")), // Node Id rs.getString("NodeDisplayName"),