title: How do I incorporate HTML code into my Java scriptlet method? (JSP)
body: <p>I am trying to include HTML inside a java scriptlet method. A pseudocode example:</p>
  
  <pre><code>&lt;%! public void doSomething() {
          %&gt;
          &lt;p&gt;Hello World&lt;/p&gt;
          &lt;%   
  } %&gt;
  </code></pre>
  
  <p>The above example doesn't work because the compiler thinks that the method ends right after it's declared.</p>
  
  <p>Is there an alternate way?</p>