From: Kerry T. <ke...@to...> - 2001-11-19 23:34:23
|
I am using the Apache Velocity template engine. To reduce the code in my template, I would like to retrieve a list of the names of the form elements. It doesn't look like there is a method to retrieve this yet. How should I go about this? It looks like I could get a FormConfiguration object for the form from the FormManager. Then if there was an accessor method in the FormConfiguration that would make the private formElements Map available, I could use that. Alternatively, I could write a getFieldNames method that processes the formElements Map, putting the names in a list and returning that list or iterator. If I could get some feedback on what would be an acceptible addition, I will code the method and then post it to the mailing list. Regards, -Kerry -- Kerry Todyruik <ke...@to...> |