This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes iterating my ApplicationResources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "iterating my ApplicationResources" Watch "iterating my ApplicationResources" New topic
Author

iterating my ApplicationResources

David Hamilton
Greenhorn

Joined: Mar 12, 2007
Posts: 1
hi there, first time post (^__^ x) and i've got a simple question (i hope)
basically, i want to output all the key pairs in my ApplicationResources
file to a jspa and write them as xml, but i can't find any simple way of
iterating through them. id like something like the code below but open to
advice.

<appvars>
<nested:iterate name="messages">
<appvar>
<key><nested:write property="key" /></key>
<val><nested:write property="val" /></val>
</appvar>
</nested:iterate>
</appvars>

thanks
David
 
Consider Paul's rocket mass heater.
 
subject: iterating my ApplicationResources