Find error on JSP page during compilation

I have thousands of Java files and the same JSP files in my project. I am compiling this project with Ant build script. The problem is when I compile this project and create WAR files for this project. Then at that time, if there is any error in the Java class, it will give me an error that there is a syntax error in the Java class, but what if I want to get a syntax error on JSP pages?

+4
source share
3 answers

For Ant, see Ant JSPC . For Maven, see Maven JSPC .

+4
source

If you use any IDE, then all syntax errors will be shown there.

0
source

JSP files are not compiled by Ant (at build time), like Java classes. They are translated to the servlet by the JSP engine on the server when they are requested for the first time. See How is the JSP page called and compiled? .

So, GP Singh is right, use the IDE.

0
source

Source: https://habr.com/ru/post/1393299/


All Articles