P
P
pqgg7nwkd42016-10-20 19:00:26
Java
pqgg7nwkd4, 2016-10-20 19:00:26

How does Tomcat compile JSP?

Good afternoon.
Can you please tell me how Tomcat compiles jsp into class files? Interested in exactly how he does it technically?
Translates code to Java and then calls javac? But there seems to be no javac in the JRE. In general, how?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
protven, 2016-10-20
@pqgg7nwkd4

mvnrepository.com/artifact/tomcat/jasper-compiler-jdt
He compiles with this thing, emnip. No javac is of course running.

V
Vasily, 2016-10-20
@Applez

Tomcat is open source, download the source and have a look.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question