File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 iterator properties file read problem

 
Sameer Ahmed
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic