I am trying to include HTML inside a java scriptlet method. A pseudocode example:
<%! public void doSomething() {
%>
<p>Hello World</p>
<%
} %>
The above example doesn't work because the compiler thinks that the method ends right after it's declared.
Is there an alternate way?