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
<%! private void myFunc(String Bits, javax.servlet.jsp.JspWriter myOut) { try{ myOut.println(""+Bits+""); } catch(Exception eek) { } } %> ... <% myFunc("more difficult than it should be",out); %>
Try this, it worked for me!