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
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
>
Hardik Shah wrote:
while (rs.next()) {
Object [] record = {
new Integer(rs.getInt("NodeId")), // Node Id
rs.getString("NodeDisplayName"),
// Display Name
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
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
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
6 matches
Mail list logo