<% if (locals.errormessage != null) { %> 
    <div class="alert alert-warning alert-dismissible">
        ERROR: <%= errormessage%>
        <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
<% } %> 