aspose file tools*
The moose likes Struts and the fly likes Struts 2 iterator properties file read problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 iterator properties file read problem" Watch "Struts 2 iterator properties file read problem" New topic
Author

Struts 2 iterator properties file read problem

Sameer Ahmed
Greenhorn

Joined: Apr 15, 2011
Posts: 11
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
 
subject: Struts 2 iterator properties file read problem