Edit: Don’t use this solution with FreeMarker 2.3.25 and up, especially not .get(prop)
. See other answers.
You use the built-in keys function, e.g. this should work:
<#list user?keys as prop>
${prop} = ${user.get(prop)}
</#list>
More Related Contents:
- Java/Android – Best way to update apps that are not in the Play Store
- Java regular expression “( *|)”: what does the pipe do? [duplicate]
- Iterate through a possibly infinite amount of nested ArrayLists
- Why is super.super.method(); not allowed in Java?
- Difference between StringBuilder and StringBuffer
- How to get the separate digits of an int number?
- Normalization in DOM parsing with java – how does it work?
- How can I get a list of all the implementations of an interface programmatically in Java?
- Convert String to Code
- Why JSF saves the state of UI components on server?
- Why does autoReconnect=true not seem to work?
- Access resource files in Android
- Java user.home is being set to %userprofile% and not being resolved
- Is there a way to add maven dependencies while using the maven-jlink-plugin?
- How to stop execution after a certain time in Java?
- split int value into separate digits
- Try-with-resources equivalent in Java 1.6
- How perform task on JavaFX TextField at onfocus and outfocus?
- Set field value with reflection
- Wait for process to finish before proceeding in Java
- Gets last digit of a number
- What’s the difference between # , % and $ signs in Struts tags?
- What’s the equivalent of Java’s Thread.sleep() in JavaScript? [duplicate]
- How to create windows service from java jar?
- How can I force Spark to execute code?
- CompletableFuture / ForkJoinPool Set Class Loader
- Why varargs should be the last in a method signature?
- How to access a file under WEB-INF folder in java class
- How can I measure time with microsecond precision in Java?
- Java: For-Each loop and references [duplicate]