title: JSP Custom tags disables use of anything else
body: <p>I'm trying to make a simple login with JSP, and I have a custom tag like this</p>
  
  <p><code>&lt;h:mainwrapper&gt;</code></p>
  
  <p>with some simple div's inside... and what i'm trying to do is to execute <code>&lt;%=error %&gt;</code> inside that custom tag.</p>
  
  <p>I get the following error:</p>
  
  <p><code>org.apache.jasper.JasperException: /login.jsp(38,8) Scripting elements ( &amp;lt;%!, &amp;lt;jsp:declaration, &amp;lt;%=, &amp;lt;jsp:expression, &amp;lt;%, &amp;lt;jsp:scriptlet ) are disallowed here.</code></p>
  
  <p>Code-example:</p>
  
  <pre><code>    &lt;h:mainwrapper&gt;
          &lt;h:topempty /&gt;
          &lt;div style="margin: auto; width: 300px; height: 300px; border: 1px solid black; margin-top: 100px;"&gt;
              &lt;div style="width: 170px; height: 250px; margin: auto; text-align: center;"&gt;
  
                  &lt;form action="LoginCheck" method="post"&gt;
                      &lt;p&gt;Login name:&lt;/p&gt;
                      &lt;input type="text" name="loginname" /&gt;
                      &lt;p&gt;Password:&lt;/p&gt;
                      &lt;input type="password" name="loginpass" /&gt;&lt;br /&gt;
                      &lt;input type="submit" name="submit" value="Login" /&gt;
                  &lt;/form&gt;
  
                  &lt;div style="color:#f00;"&gt;
                      &lt;%=error %&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
          &lt;/div&gt;
      &lt;/h:mainwrapper&gt;
  </code></pre>
  
  <p>Do I have to enable something to let this be allowed?</p>