I just started learning JSP technology, and came across a wall.
How do you output HTML from a method in <%! ... %> JSP declaration block?
This do
I suppose this would help:
<%! String someOutput() { return "Some Output"; } %> ... <%= someOutput() %>
Anyway, it isn't a good idea to have code in a view.