• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Struts 2 iterator properties file read problem

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

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 index...like label-0=ABC.....label-1=HAHAHA
 
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic