Can someone clearly describe how JRE handles the JSP files which contain pure JAVA codes? I know that byte codes of JSP files are not placed in the WAR file. It consists of compiled CLASS files and plain JSP files.
It says in Tomcat's RUNNING.txt "Apache Tomcat 6.0 requires the Java 2 Standard Edition Runtime Environment (JRE) version 5.0 or later."
Please kill my pain.
Tomcat's RUNNING. txt which you can find in the root of the bundle states that Apache Tomcat requires Java Standard Edition Runtime Environment (JRE) to run.
you can use Tomcat(has jsp container in it) to run your jsp. Show activity on this post. You need servlet container, connector component and the JSP engine to run JSP pages. In case of tomcat, Catalina is actually the servlet container.
The first time a JSP page is requested, Tomcat passes it to Jasper which parses the code and sends it to its Java compiler (JDT, a component borrowed from the Eclipse IDE project) to have the servlet elements compiled into Java bytecode classes.
Add a JSP extension to the file name -- for example, "filename. jsp" -- and click "Save." Put it at location C:\apache-tomcat-7.0. 28\webapps\ROOT.
Tomcat bundles a copy of the Eclipse compiler, rather than using the JDK javac compiler. It's faster (or, at least, it used to be), has less restrictive licensing, and removes the dependency on the full JDK.
http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html
The Eclipse JDT Java compiler is now used to perform JSP java source code compilation
This suggests that prior to Tomcat 5.5, the full JDK was required.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With