charak roy wrote:
The error occurs at line 2.
org.apache.jasper.JasperException: /New.jspx(2,2) The markup in the document preceding the root element must be well-formed.
Caused by:
org.apache.jasper.JasperException - /New.jspx(2,2) The markup in the document preceding the root element must be well-formed.
Please let me know if there is a solution to this.
I get the error when I run the file in eclipse.
I am not even sure eclipse supports jspx without some kind of plugin. I am using eclipse Mars and there doesn't seem the be a menu for creating jspx pages.
If you do not mind using plain
jsp, just remove the first line in your jspx and rename it jsp:
It should work fine. Otherwise, search for "Using jspx vs jsp"
jspx seems more strict about what you can put in them.