I want to print out the contents of a backing bean in an auto-generated way. So all the contents appear on a JSP. Is this possible anyhow?
Thanks in advance, Daniel
I want to print out the contents of a backing bean in an auto-generated way. So all the contents appear on a JSP. Is this possible anyhow?
Thanks in advance, Daniel
One way to do this would be using the JavaBean API and a custom tag function.
WEB-INF/tld/beans.tld:
Implementation:
This tag library is then imported in the JSP header:
Sample dataTable using the function:
See the JavaBean spec for info on how to provide localized property names, etc.