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
A simple alternative would be the following:
<%! String myVariable = "Test"; pageContext.setAttribute("myVariable", myVariable); %> ${myVariable}
The you could simply use the variable in any way within the jsp code