I’m working in a jsp. bean.getConfigurationActionButtonBar() returns a list of button objects. WebUtils.getActionButtonBar(List buttonList) takes that list and returns generated html. Very simple.
Now, for some reason this doesn’t work:
<td colspan="2">
${WebUtils.getActionButtonBar(bean.getConfigurationActionButtonBar())}
</td>
The button list is set. Something’s wrong with the call to static WebUtils.getActionButtonBar. That call is simply never made. Any idea?
You need to declare it as an EL function and register it in a separate taglib.
First create a
/WEB-INF/functions.tldfile:Then you can use it as follows:
However, you’re going completely the wrong path as to achieving the concrete functional requirement. HTML should be generated by JSP files, not by raw Java code. Use a JSP include file or tag file instead.