Hello Experts !
I have a map(basically hashmap) on
JSP available that needs to be used to render a part of the JSP page. As all of you know, a hashmap doesn't maintain order(Ascending/descending) of keys, I need to somehow sort the data. I don't want to do it through code (basically write function or
java code, but use only
struts tags)and if that is the only option I know how to do it. So my question is,
1. Is it possible to do this using struts tags(for example, logic:iterate) only?
2. I think I can use labelvaluebean. But still I need to put the data from hashmap into the labelvaluebean and then sort it. Correct me if I am wrong. If you can show me an example, that will be great !
3. Putting the hashmap data in another map which provided map data in sorted order.
Thank you very much !