Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Struts 2 iterator properties file read problem

Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to read properties file in JSP using iterator.
So far I have tried

1. <s:label label="getText('label-%{#stat.index}')" />--------------output=getText('label-0')
2. <s:properties value="getText('label-%{#stat.index}')" />-------output=getText('label-0')
3. <s:textfield label="getText('label-%{#stat.index}')" />-----------output=getText('label-0')
4. <s:label label="getText(label-%{#stat.index})" />--------------output=getText(label-0)

but none of them is working

when i tried a fixe value like <s:properties value="getText('label-0')" />. i get the right output.

please let me know what should I do in order to print properties values based on iteration label-0=ABC.....label-1=HAHAHA
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic