JSP Processing instruction not closed

user962206 picture user962206 · Oct 7, 2012 · Viewed 25.8k times · Source

I tried to include an HTML file to my JSP but I eclipse show'd this error

The included file

<%@include file="includes/head.html" %>

And the error

Processing instruction not closed

And this is just the simple JSP

<%@include file = "includes/head.html" %>

    <form action = "#" method = "POST">
        Username: <input type = "text" name = "username"><br/>
        Password: <input type = "password" name = "password"><br/>
    </form>
</body>
</html>

Answer

Anurag Priyadarshi picture Anurag Priyadarshi · Jul 10, 2013

Select All, Backspace,Then ctrl+z to revert. works for me. But someone who knows eclipse well might shed some light as to why this happens