Bruce Conrad - 2010-01-29

This is in answer to a question from Sean Nilsen:
I've implemented this several different ways is in several different apps. The key is to expose JFig entries using something like the following:
Set<Map<String, String>> set =JFig.getInstance().getConfigDictionary().getDictionaryOfSectionDictionaries()
        .entrySet();

Now you have a list of maps as basic java types (strings). You can iterate over the lists  and display the contents from a jsp much as you would any list. You can also get each map and do a map.entrySet and iterate over that.

You can also go a step further and update a jfig value on your running application. Provide some input fields, then have an update button call:
   JFig.getInstance().setConfigurationValue(section, key, value);
Keep in mind these values will not persist when you restart the app.

On Thu, Jan 28, 2010 at 6:45 AM, Sean Nilsen <fili.tine@gmail.com> wrote:
So, I am a very, very new JFig user.

I get how it works and how it plugs into my environment, etc, etc.

My problem is that I now have a requirement being thrown at me to pull the output XML config file into a Web Page to make available for viewing.

I am wondering if you fine folks have any experience at displaying the XML file in a pretty format, like a table?

If not, are you folks aware of any user-community/forums/etc. where your product is being discussed?

Thanks!