• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 2 Iterate tag not getting the customed format

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends

I have to get data in following format

Name, Number - button

but the struts iterate tag is giving me night mare

In java



In JSP



and result is



[max, AAAA, DDD, TTT, NNN, CCCC, PP, 111, 2222, 3333, 4444, 55555, 6666, 77777]


but i need in this format

max 111
aaaa 22222
ddd 3333
.
.
.

can any one tell me how to get this type of format


 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While I hesitate to tell you this, since in my opinion it's the wrong way to do it, see the merge tag.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now that I think about it, that's actually not going to help much. It'd be easier, and much, much cleaner, to just do it right. Pass a list of objects, each containing the two elements you want to display on the same line.
 
reply
    Bookmark Topic Watch Topic
  • New Topic