title: JSP import external Class Method
body: <p>I want to use an external call method in my jsp file. I want to get an URL to trigger an action. 
  on top: </p>
  
  <pre><code>&lt;%@ page import="com.myapp.Utils" %&gt;
  </code></pre>
  
  <p>in my body:</p>
  
  <pre><code>&lt;form id='externalForm' action="&lt;%= Utils.getWebappURL(request) %&gt;" method="POST" target="_parent"&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>and I submit the form via JS.</p>
  
  <p>But I get an error message: 
  HTTP ERROR: 500</p>
  
  <p>Compile failed; see the compiler error output for details.
  RequestURI=/login
  But there are just the header infos. </p>
  
  <p>thx for any help :)</p>