Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 iterator properties file read problem  RSS feed

Sameer Ahmed
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!