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
You can do something like this:
<%! String myMethod(String input) { return "test " + input; } %> <%= myMethod("1 2 3") %>
This will output test 1 2 3 to the page.
test 1 2 3